Provides access to the information about the current user.
The User type exposes the following members.
|Equals||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the type of the current instance. (Inherited from Object.)|
|InitializeWithWindowsUser||Sets the thread's current principal to the Windows user that started the application.|
|IsInRole||Overloaded. Determines whether the current user belongs to the specified role.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|CurrentPrincipal||Gets or sets the current principal (for role-based security).|
|InternalPrincipal||Gets or sets the principal object representing the current user.|
|IsAuthenticated||Gets a value that indicates whether the user has been authenticated.|
|Name||Gets the name of the current user.|