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.Web.Security.MembershipUserCollection's in one collection with elements which were included in any of source collections
Declaration
public static MembershipUserCollection CombineDistinct(MembershipUserCollection first, MembershipUserCollection second)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Security.MembershipUserCollection | first | The first System.Web.Security.MembershipUserCollection. |
System.Web.Security.MembershipUserCollection | second | The second System.Web.Security.MembershipUserCollection. |
Returns
Type | Description |
---|---|
System.Web.Security.MembershipUserCollection | The combined System.Web.Security.MembershipUserCollection |
CombineIntersect(MembershipUserCollection, MembershipUserCollection)
Combines two System.Web.Security.MembershipUserCollection's in one collection with elements which were included in both source collections
Declaration
public static MembershipUserCollection CombineIntersect(MembershipUserCollection first, MembershipUserCollection second)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Security.MembershipUserCollection | first | The first System.Web.Security.MembershipUserCollection. |
System.Web.Security.MembershipUserCollection | second | The second System.Web.Security.MembershipUserCollection. |
Returns
Type | Description |
---|---|
System.Web.Security.MembershipUserCollection | The combined System.Web.Security.MembershipUserCollection |
CreateMembershipUserCollection(IEnumerable<MembershipUser>)
Creates the membership user collection from generic collection of System.Web.Security.MembershipUser.
Declaration
public static MembershipUserCollection CreateMembershipUserCollection(IEnumerable<MembershipUser> collection)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Web.Security.MembershipUser> | collection | The collection. |
Returns
Type | Description |
---|---|
System.Web.Security.MembershipUserCollection | The System.Web.Security.MembershipUserCollection |
GetWildcardSymbolFromDefaultProvider()
Gets the wildcard symbol from the default membership provider or default - '%'
Declaration
public static string GetWildcardSymbolFromDefaultProvider()
Returns
Type | Description |
---|---|
System.String | Wildcard symbol |
ToList(MembershipUserCollection)
Creates a list of System.Web.Security.MembershipUser elements from System.Web.Security.MembershipUserCollection.
Declaration
public static List<MembershipUser> ToList(this MembershipUserCollection collection)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Security.MembershipUserCollection | collection | The collection. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Web.Security.MembershipUser> | The generic list of System.Web.Security.MembershipUser |