ADLib.ActiveDirectory.GetUserByGuid C# (CSharp) Метод

GetUserByGuid() публичный Метод

Returns the user with the specified ID or null if not found
public GetUserByGuid ( System.Guid guid, System.DirectoryServices.AccountManagement.PrincipalContext context = null ) : System.DirectoryServices.AccountManagement.UserPrincipal
guid System.Guid
context System.DirectoryServices.AccountManagement.PrincipalContext
Результат System.DirectoryServices.AccountManagement.UserPrincipal
        public UserPrincipal GetUserByGuid(Guid guid, PrincipalContext context = null)
        {
            return UserPrincipal.FindByIdentity(context ?? Context, IdentityType.Guid, guid.ToString());
        }