Export (0) Print
Expand All

RoleProvider Members

Defines the contract that ASP.NET implements to provide role-management services using custom role providers.

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

  Name Description
Protected method RoleProvider Initializes a new instance of the RoleProvider class.
Top

  Name Description
Public property ApplicationName Gets or sets the name of the application to store and retrieve role information for.
Public property Description  Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs).(inherited from ProviderBase)
Public property Name  Gets the friendly name used to refer to the provider during configuration.(inherited from ProviderBase)
Top

(see also Protected Methods )
  Name Description
Public method AddUsersToRoles Adds the specified user names to the specified roles for the configured applicationName.
Public method CreateRole Adds a new role to the data source for the configured applicationName.
Public method DeleteRole Removes a role from the data source for the configured applicationName.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method FindUsersInRole Gets an array of user names in a role where the user name contains the specified user name to match.
Public method GetAllRoles Gets a list of all the roles for the configured applicationName.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetRolesForUser Gets a list of the roles that a specified user is in for the configured applicationName.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method GetUsersInRole Gets a list of users in the specified role for the configured applicationName.
Public method Initialize  Initializes the provider. (inherited from ProviderBase)
Public method IsUserInRole Gets a value indicating whether the specified user is in the specified role for the configured applicationName.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method RemoveUsersFromRoles Removes the specified user names from the specified roles for the configured applicationName.
Public method RoleExists Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  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)
Top

Community Additions

ADD
Show:
© 2014 Microsoft