Affecto.ActiveDirectoryService.ActiveDirectoryService.GetPrincipalInternal C# (CSharp) Method

GetPrincipalInternal() protected method

protected GetPrincipalInternal ( System.Guid nativeGuid, ICollection additionalPropertyNames = null ) : Principal
nativeGuid System.Guid
additionalPropertyNames ICollection
return Principal
        protected virtual Principal GetPrincipalInternal(Guid nativeGuid, ICollection<string> additionalPropertyNames = null)
        {
            using (DirectoryEntry domainEntry = GetDirectoryEntryByNativeGuid(nativeGuid))
            {
                return Principal.FromDirectoryEntry(domainEntry, additionalPropertyNames);
            }
        }