[Serializable] |
ctor #1 | Initializes a new instance of the GenericPrincipal class from a GenericIdentity and an array of role names to which the user represented by that GenericIdentity belongs. |
Identity | Read-only Gets the GenericIdentity of the user represented by the current GenericPrincipal. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
IsInRole | Determines whether the current GenericPrincipal belongs to the specified role. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
identity
roles
Exception Type | Condition |
---|---|
ArgumentNullException | The identity parameter is null. |
public virtual IIdentity Identity {get;}
|
~GenericPrincipal(); |
public virtual int GetHashCode(); |
public Type GetType(); |
role
protected object MemberwiseClone(); |
public virtual string ToString(); |