Export (0) Print
Expand All

AuthenticablePrincipal Methods

The AuthenticablePrincipal type exposes the following members.

  NameDescription
Public method ChangePassword Changes the account password from the old password to the new password. Do not use this with a ComputerPrincipal.
Protected method CheckDisposedOrDeleted Determines whether the Dispose or Delete methods have been called on this class. This method is called by classes that derive from this principal class. (Inherited from Principal.)
Public method Delete Deletes the principal object from the store. (Inherited from Principal.)
Public method Dispose Disposes the current instance of the Principal object. (Inherited from Principal.)
Public method Equals Returns a Boolean value that specifies whether the supplied object is equal to the current object. (Inherited from Principal.)
Public method ExpirePasswordNow Expires the password for this account. This will force the user to change his/her password at the next logon.
Protected method ExtensionGet Retrieves an attribute of an extended class object. (Inherited from Principal.)
Protected method ExtensionSet Sets the value of an attribute in an extended class. (Inherited from Principal.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member FindByBadPasswordAttempt(PrincipalContext, DateTime, MatchType) Returns a collection of authentication principal objects that have an incorrect password try recorded in the specified date and time range.
Protected method Static member FindByBadPasswordAttempt<T>(PrincipalContext, DateTime, MatchType) Returns a [T:System.DirectoryServices.AccountManagement.PrincipalSearchResult'1] collection of objects that have a bad password attempt within the specified date and time range. This is the template function for extended classes that wish to implement this functionality.
Public method Static member FindByExpirationTime(PrincipalContext, DateTime, MatchType) Returns a collection of authentication principal objects that have an account expiration time recorded in the specified date and time range.
Protected method Static member FindByExpirationTime<T>(PrincipalContext, DateTime, MatchType) Returns a [T:System.DirectoryServices.AccountManagement.PrincipalSearchResult'1] collection of objects that have an expiration time within the specified date and time range. This is the template function for extended classes that wish to implement this functionality.
Public method Static member FindByLockoutTime(PrincipalContext, DateTime, MatchType) Returns a collection of authentication principal objects that have an account lockout time recorded in the specified date and time range.
Protected method Static member FindByLockoutTime<T>(PrincipalContext, DateTime, MatchType) Returns a [T:System.DirectoryServices.AccountManagement.PrincipalSearchResult'1] collection of objects that have a lockout time within the specified date and time range. This is the template function for extended classes that wish to implement this functionality.
Public method Static member FindByLogonTime(PrincipalContext, DateTime, MatchType) Returns a collection of authentication principal objects that have an account logon recorded in the specified date and time range.
Protected method Static member FindByLogonTime<T>(PrincipalContext, DateTime, MatchType) Returns a [T:System.DirectoryServices.AccountManagement.PrincipalSearchResult'1] collection of objects that have a logon time within the specified date and time range. This is the template function for extended classes that wish to implement this functionality.
Public method Static member FindByPasswordSetTime(PrincipalContext, DateTime, MatchType) Returns a collection of authentication principal objects that have an account password set recorded in the specified date and time range.
Protected method Static member FindByPasswordSetTime<T>(PrincipalContext, DateTime, MatchType) Returns a [T:System.DirectoryServices.AccountManagement.PrincipalSearchResult'1] collection of objects that have a password set time within the specified date and time range. This is the template function for extended classes that wish to implement this functionality.
Public method GetGroups() Returns a collection of group objects that specify the groups of which the current principal is a member. (Inherited from Principal.)
Public method GetGroups(PrincipalContext) Returns a collection of group objects that the principal is a member of and that exist in the store provided by the specified context parameter. (Inherited from Principal.)
Public method GetHashCode Retrieves the hash created from the contents of the principal object, suited for use in hashing algorithms and data structures like a hash table. (Inherited from Principal.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetUnderlyingObject Returns the underlying DirectoryEntry object that provides the contact data for the principal object. (Inherited from Principal.)
Public method GetUnderlyingObjectType Returns the underlying object type. (Inherited from Principal.)
Public method IsAccountLockedOut Returns a Boolean value that specifies whether the account is currently locked out.
Public method IsMemberOf(GroupPrincipal) Returns a Boolean value that specifies whether the principal is a member of the specified group. (Inherited from Principal.)
Public method IsMemberOf(PrincipalContext, IdentityType, String) Returns a Boolean value that specifies whether the principal is a member of the group specified by identity type and value. (Inherited from Principal.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RefreshExpiredPassword Refreshes an expired password.
Public method Save() Saves the changes that were made on the principal object to the store. If this is a new principal object, this method inserts it into the store. (Inherited from Principal.)
Public method Save(PrincipalContext) Saves the changes that were made on the principal object to the store. If this is a new principal object, this method inserts it into the specified context. If the principal has already been persisted, it is moved from the original context to the specified context. (Inherited from Principal.)
Public method SetPassword Sets the account password to the specified value.
Public method ToString Returns a user friendly string representation of the current principal object. (Inherited from Principal.)
Public method UnlockAccount Unlocks the account if it is currently locked out.
Top

Community Additions

ADD
Show:
© 2014 Microsoft