Share via


DefaultRoleProvider Class

 

Represents the implemented role provider using EntityFramework.

Namespace:   System.Web.Providers
Assembly:  System.Web.Providers (in System.Web.Providers.dll)

Inheritance Hierarchy

System.Object
  System.Configuration.Provider.ProviderBase
    System.Web.Security.RoleProvider
      System.Web.Providers.DefaultRoleProvider

Syntax

public class DefaultRoleProvider : RoleProvider
public ref class DefaultRoleProvider : RoleProvider
type DefaultRoleProvider = 
    class
        inherit RoleProvider
    end
Public Class DefaultRoleProvider
    Inherits RoleProvider

Constructors

Name Description
System_CAPS_pubmethod DefaultRoleProvider()

Initializes a new instance of the DefaultRoleProvider class.

Properties

Name Description
System_CAPS_pubproperty ApplicationName

Gets or sets the application name.(Overrides RoleProvider.ApplicationName.)

System_CAPS_pubproperty Description

(Inherited from ProviderBase.)

System_CAPS_pubproperty Name

(Inherited from ProviderBase.)

Methods

Name Description
System_CAPS_pubmethod AddUsersToRoles(String[], String[])

Adds all of the usernames to all of the roleNames.(Overrides RoleProvider.AddUsersToRoles(String[], String[]).)

System_CAPS_pubmethod CreateRole(String)

Creates a role.(Overrides RoleProvider.CreateRole(String).)

System_CAPS_pubmethod DeleteRole(String, Boolean)

Deletes a role. (Overrides RoleProvider.DeleteRole(String, Boolean).)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod FindUsersInRole(String, String)

Finds users in a role.(Overrides RoleProvider.FindUsersInRole(String, String).)

System_CAPS_pubmethod GetAllRoles()

Returns all roles.(Overrides RoleProvider.GetAllRoles().)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetRolesForUser(String)

Gets the roles for a user.(Overrides RoleProvider.GetRolesForUser(String).)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod GetUsersInRole(String)

Gets all the users in a given role.(Overrides RoleProvider.GetUsersInRole(String).)

System_CAPS_pubmethod Initialize(String, NameValueCollection)

Initializes the provider from configuration.(Overrides ProviderBase.Initialize(String, NameValueCollection).)

System_CAPS_pubmethod IsUserInRole(String, String)

Determines whether a user is in a role.(Overrides RoleProvider.IsUserInRole(String, String).)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod RemoveUsersFromRoles(String[], String[])

Removes the specified users from the specified roles.(Overrides RoleProvider.RemoveUsersFromRoles(String[], String[]).)

System_CAPS_pubmethod RoleExists(String)

Determines whether a role exists.(Overrides RoleProvider.RoleExists(String).)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Providers Namespace
ASP.NET Identity

Return to top