This documentation is archived and is not being maintained.

Principal Members

Visual Studio 2008

Encapsulates the account data and operations common to all security principals. This is the abstract base class from which all security principals are derived.

The Principal type exposes the following members.

  NameDescription
Protected method Principal Initializes a new instance of the Principal class. This constructor is called by derived-class constructors to initialize the base class and is not intended to be called directly from your code.
Top

  NameDescription
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.
Public method Delete Deletes the principal object from the store.
Public method Dispose Disposes the current instance of the Principal object.
Public method Equals Returns a Boolean value that specifies whether the supplied object is equal to the current object. (Overrides Object.Equals(Object).)
Protected method ExtensionGet Retrieves an attribute of an extended class object.
Protected method ExtensionSet Sets the value of an attribute in an extended class.
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 FindByIdentity Overloaded. Returns a principal object that matches the specified identity value.
Protected method Static member FindByIdentityWithType Overloaded. Returns a principal object that matches the specified identity type, and value. This method is called by the implementation of the derived-class FindByIdentity method to restrict the search to the derived class type and is not intended to be called directly from your code.
Public method GetGroups Overloaded. Returns a collection of group objects that specify the groups of which the current principal is a member.
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. (Overrides Object.GetHashCode().)
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.
Public method GetUnderlyingObjectType Returns the underlying object type.
Public method IsMemberOf Overloaded. Returns a Boolean value that specifies whether the group is a member of the specified group.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Save Overloaded. 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.
Public method ToString Returns a user friendly string representation of the current principal object. (Overrides Object.ToString().)
Top

  NameDescription
Public property Context Gets a principal context that is associated with the principal.
Protected property ContextRaw Gets a principal context that is associated with this principal.
Public property ContextType Gets the context type enumeraton value that specifies the type of principal context associated with this principal.
Public property Description Gets or sets the description of the principal.
Public property DisplayName Gets or sets the display name for this principal.
Public property DistinguishedName Gets the distinguished name (DN) for this principal.
Public property Guid Gets the GUID associated with this principal.
Public property Name Gets or sets the name of this principal.
Public property SamAccountName Gets or sets the SAM account name for this principal.
Public property Sid Gets the Security ID (SID) of the principal.
Public property StructuralObjectClass Gets the structural object class directory attribute.
Public property UserPrincipalName Gets or sets the user principal name (UPN) associated with this principal.
Top
Show: