Class ProviderCapabilitySettings
Implements information about capabilities that various Mamberhip and Role providers supports.
Inheritance
Inherited Members
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 9.12.2Syntax
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 |
|
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 |
|