November Happy Hour will be moved to Thursday December 5th.

Class SecurityEntityProviderExtensions

Convenience extension methods for SecurityEntityProvider

Inheritance
System.Object
SecurityEntityProviderExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Security
Assembly: EPiServer.Framework.dll
Version: 9.12.2
Syntax
public static class SecurityEntityProviderExtensions

Methods

SearchRoles(SecurityEntityProvider, String)

Search all roles matching partOfName.

Declaration
public static IEnumerable<SecurityEntity> SearchRoles(this SecurityEntityProvider securityEntityProvider, string partOfName)
Parameters
Type Name Description
SecurityEntityProvider securityEntityProvider

The provider that is extended

System.String partOfName

part of the role name to match. Null or String.Empty will return all roles.

Returns
Type Description
System.Collections.Generic.IEnumerable<SecurityEntity>

A list of matching roles.

SearchRoles(SecurityEntityProvider, String, Int32, Int32, out Int32)

Search all roles matching partOfName.

Declaration
public static IEnumerable<SecurityEntity> SearchRoles(this SecurityEntityProvider securityEntityProvider, string partOfName, int startIndex, int maxRows, out int totalCount)
Parameters
Type Name Description
SecurityEntityProvider securityEntityProvider

The provider that is extended

System.String partOfName

part of the role name to match. Null or String.Empty will return all roles.

System.Int32 startIndex

The start index, used for paging

System.Int32 maxRows

The maximum number of rows returned

System.Int32 totalCount

The total amount of matched entites. Return -1 if provider does not support paging.

Returns
Type Description
System.Collections.Generic.IEnumerable<SecurityEntity>

A list of all matching entities or an empty list if no matches.

SearchUsersByEmail(SecurityEntityProvider, String)

Search all users with an email matching partOfEmail.

Declaration
public static IEnumerable<SecurityEntity> SearchUsersByEmail(this SecurityEntityProvider securityEntityProvider, string partOfEmail)
Parameters
Type Name Description
SecurityEntityProvider securityEntityProvider

The provider that is extended

System.String partOfEmail

part of the email to match.

Returns
Type Description
System.Collections.Generic.IEnumerable<SecurityEntity>

A list of matching users.

SearchUsersByName(SecurityEntityProvider, String)

Search all users with a matching partOfName.

Declaration
public static IEnumerable<SecurityEntity> SearchUsersByName(this SecurityEntityProvider securityEntityProvider, string partOfName)
Parameters
Type Name Description
SecurityEntityProvider securityEntityProvider

The provider that is extended

System.String partOfName

part of the user name to match. Null or String.Empty will return all users.

Returns
Type Description
System.Collections.Generic.IEnumerable<SecurityEntity>

A list of matching users.

SearchUsersByName(SecurityEntityProvider, String, Int32, Int32, out Int32)

Search all users matching partOfName.

Declaration
public static IEnumerable<SecurityEntity> SearchUsersByName(this SecurityEntityProvider securityEntityProvider, string partOfName, int startIndex, int maxRows, out int totalCount)
Parameters
Type Name Description
SecurityEntityProvider securityEntityProvider

The provider that is extended

System.String partOfName

part of the user name to match. Null or String.Empty will return all users.

System.Int32 startIndex

The start index, used for paging

System.Int32 maxRows

The maximum number of rows returned

System.Int32 totalCount

The total amount of matched entites. Return -1 if provider does not support paging.

Returns
Type Description
System.Collections.Generic.IEnumerable<SecurityEntity>

A list of all matching entities or an empty list if no matches.