Class MembershipSecurityEntityProvider
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version.
Implemantation of SecurityEntityProvider that delegates calls to configured System.Web.Security.Membership and System.Web.Security.Roles providers.
Inheritance
System.Object
MembershipSecurityEntityProvider
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public class MembershipSecurityEntityProvider : PagingSupportingSecurityEntityProvider
Constructors
MembershipSecurityEntityProvider()
Default constuctor, will use System.Web.Security.Membership.Provider and System.Web.Security.Roles.Provider.
Declaration
public MembershipSecurityEntityProvider()
MembershipSecurityEntityProvider(MembershipProvider, RoleProvider)
Constructor with dependencies.
Declaration
public MembershipSecurityEntityProvider(MembershipProvider membershipProvder, RoleProvider roleProvider)
Parameters
| Type |
Name |
Description |
| System.Web.Security.MembershipProvider |
membershipProvder |
The membership provider to use.
|
| System.Web.Security.RoleProvider |
roleProvider |
The membership provider to use.
|
Properties
WildCardSymbol
Declaration
public override string WildCardSymbol { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Methods
GetRolesForUser(String)
Declaration
public override IEnumerable<string> GetRolesForUser(string userName)
Parameters
| Type |
Name |
Description |
| System.String |
userName |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
|
Search(String, String)
Declaration
public override IEnumerable<SecurityEntity> Search(string partOfValue, string claimType)
Parameters
| Type |
Name |
Description |
| System.String |
partOfValue |
|
| System.String |
claimType |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<SecurityEntity> |
|
Search(String, String, Int32, Int32, out Int32)
Declaration
public override IEnumerable<SecurityEntity> Search(string partOfValue, string claimType, int startIndex, int maxRows, out int totalCount)
Parameters
| Type |
Name |
Description |
| System.String |
partOfValue |
|
| System.String |
claimType |
|
| System.Int32 |
startIndex |
|
| System.Int32 |
maxRows |
|
| System.Int32 |
totalCount |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<SecurityEntity> |
|
Extension Methods