This documentation is archived and is not being maintained.

User Members

Provides access to the information about the current user.

The User type exposes the following members.

  NameDescription
Public method User Initializes a new instance of the User class.
Top

  NameDescription
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
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 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 InitializeWithWindowsUser Sets the thread's current principal to the Windows user that started the application.
Public method IsInRole Overloaded. Determines whether the current user belongs to the specified role.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property CurrentPrincipal Gets or sets the current principal (for role-based security).
Protected property InternalPrincipal Gets or sets the principal object representing the current user.
Public property IsAuthenticated Gets a value that indicates whether the user has been authenticated.
Public property Name Gets the name of the current user.
Top
Show: