Table of Contents

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

key CapabilityKey

The key for the capability. This must be unique.

requiredCapabilities IEnumerable<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

key CapabilityKey

The key for the capability. This must be unique.

name string

The 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

key CapabilityKey

The key for the capability. This must be unique.

name string

The name of the capability.

requiredCapabilities IEnumerable<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

CapabilityKey

Name

Gets the name of the capability.

public string Name { get; }

Property Value

string

RequiredCapabilities

Gets the required capabilities for this capability.

public IReadOnlyCollection<CapabilityKey> RequiredCapabilities { get; }

Property Value

IReadOnlyCollection<CapabilityKey>
To top