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

Class ProviderCapabilitySettings

Implements information about capabilities that various Mamberhip and Role providers supports.

Inheritance
System.Object
ProviderCapabilitySettings
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.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class ProviderCapabilitySettings
Remarks

How to use: Question for property on provider: ProviderCapabilities.IsSupported(membershipUser.ProviderName, "comment") Question if provider supports create: ProviderCapabilities.IsSupported(providerMemberName, ProviderActions.Create)

Constructors

ProviderCapabilitySettings(ProviderActions, String[])

Initializes a new instance of the ProviderCapabilitySettings class.

Declaration
public ProviderCapabilitySettings(ProviderActions allowedActions, params string[] properties)
Parameters
Type Name Description
ProviderActions allowedActions

Provider supported actions.

System.String[] properties

Key-value pairs that describes custom properties.

Properties

NullCapability

Gets the null capability object.

Declaration
public static ProviderCapabilitySettings NullCapability { get; }
Property Value
Type Description
ProviderCapabilitySettings

The null capability object.

WildcardSymbol

Wildcard symbol used when searching for Users

Declaration
public virtual string WildcardSymbol { get; set; }
Property Value
Type Description
System.String
Remarks

Default wildcard symbol is %

Methods

AllowsAction(ProviderActions)

Check if the action is allowed.

Declaration
public virtual bool AllowsAction(ProviderActions action)
Parameters
Type Name Description
ProviderActions action

The action.

Returns
Type Description
System.Boolean

true if the action is allowed; otherwise, false.

AllowsProperty(String)

Check if the property is supported.

Declaration
public virtual bool AllowsProperty(string propertyName)
Parameters
Type Name Description
System.String propertyName

Name of the property.

Returns
Type Description
System.Boolean

true if the action is allowed; otherwise, false.

Extension Methods