Export (0) Print
Expand All

WindowsPrincipal Members

Allows code to check the Windows group membership of a Windows user.

The following tables list the members exposed by the WindowsPrincipal type.

  Name Description
Public method WindowsPrincipal Initializes a new instance of the WindowsPrincipal class by using the specified WindowsIdentity object.

  Name Description
Public property Identity Gets the identity of the current principal.

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IsInRole Overloaded. Determines whether the current principal belongs to a specified Windows user group.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)

Community Additions

© 2014 Microsoft