Class Capability
- Namespace
- Dynamicweb.CoreUI.CapabilityControl
- Assembly
- Dynamicweb.CoreUI.dll
Model representing a capability.
public sealed class Capability
- Inheritance
-
Capability
- Inherited Members
Constructors
Capability(CapabilityKey, IEnumerable<CapabilityKey>)
Initializes a new instance of the Capability class.
public Capability(CapabilityKey key, IEnumerable<CapabilityKey> requiredCapabilities)
Parameters
keyCapabilityKeyThe key for the capability. This must be unique.
requiredCapabilitiesIEnumerable<CapabilityKey>The required capabilities for this capability is dependent on.
Exceptions
- ArgumentNullException
Thrown when category or key is null or empty.
Capability(CapabilityKey, string)
Initializes a new instance of the Capability class.
public Capability(CapabilityKey key, string name)
Parameters
keyCapabilityKeyThe key for the capability. This must be unique.
namestringThe name of the capability.
Exceptions
- ArgumentNullException
Thrown when category or key is null or empty.
Capability(CapabilityKey, string, IEnumerable<CapabilityKey>)
Initializes a new instance of the Capability class.
public Capability(CapabilityKey key, string name, IEnumerable<CapabilityKey> requiredCapabilities)
Parameters
keyCapabilityKeyThe key for the capability. This must be unique.
namestringThe name of the capability.
requiredCapabilitiesIEnumerable<CapabilityKey>The required capabilities for this capability is dependent on.
Exceptions
- ArgumentNullException
Thrown when category or key is null or empty.
Properties
Key
Gets the key for the specific capability within the category.
public CapabilityKey Key { get; }
Property Value
Name
Gets the name of the capability.
public string Name { get; }
Property Value
RequiredCapabilities
Gets the required capabilities for this capability.
public IReadOnlyCollection<CapabilityKey> RequiredCapabilities { get; }