Class MembershipExtensions
Extensions for membership classes
Inheritance
Inherited Members
Namespace: EPiServer.Security
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public static class MembershipExtensions
Methods
CombineDistinct(MembershipUserCollection, MembershipUserCollection)
Combines two System.
Declaration
public static MembershipUserCollection CombineDistinct(MembershipUserCollection first, MembershipUserCollection second)
Parameters
Type | Name | Description |
---|---|---|
System. |
first | The first System. |
System. |
second | The second System. |
Returns
Type | Description |
---|---|
System. |
The combined System. |
CombineIntersect(MembershipUserCollection, MembershipUserCollection)
Combines two System.
Declaration
public static MembershipUserCollection CombineIntersect(MembershipUserCollection first, MembershipUserCollection second)
Parameters
Type | Name | Description |
---|---|---|
System. |
first | The first System. |
System. |
second | The second System. |
Returns
Type | Description |
---|---|
System. |
The combined System. |
CreateMembershipUserCollection(IEnumerable<MembershipUser>)
Creates the membership user collection from generic collection of System.
Declaration
public static MembershipUserCollection CreateMembershipUserCollection(IEnumerable<MembershipUser> collection)
Parameters
Type | Name | Description |
---|---|---|
System. |
collection | The collection. |
Returns
Type | Description |
---|---|
System. |
The System. |
GetWildcardSymbolFromDefaultProvider()
Gets the wildcard symbol from the default membership provider or default - '%'
Declaration
public static string GetWildcardSymbolFromDefaultProvider()
Returns
Type | Description |
---|---|
System. |
Wildcard symbol |
ToList(MembershipUserCollection)
Creates a list of System.
Declaration
public static List<MembershipUser> ToList(this MembershipUserCollection collection)
Parameters
Type | Name | Description |
---|---|---|
System. |
collection | The collection. |
Returns
Type | Description |
---|---|
System. |
The generic list of System. |