Class VisibilityConditionActivator
Contains methods for creating VisibilityConditions.
public class VisibilityConditionActivator : IVisibilityConditionActivator
- Inheritance
-
objectVisibilityConditionActivator
- Implements
- Extension Methods
Constructors
VisibilityConditionActivator(IVisibilityConditionDefinitionProvider)
Initializes a new instance of the VisibilityConditionActivator class.
public VisibilityConditionActivator(IVisibilityConditionDefinitionProvider visibilityConditionDefinitionProvider)
Parameters
visibilityConditionDefinitionProvider
IVisibilityConditionDefinitionProviderRetrieves VisibilityConditionDefinitions.
Methods
CreateVisibilityCondition(VisibilityConditionDefinition)
Creates a new instance of the VisibilityCondition specified by its definition with default property values.
public VisibilityCondition CreateVisibilityCondition(VisibilityConditionDefinition definition)
Parameters
definition
VisibilityConditionDefinitionDefines VisibilityCondition which is to be created.
Returns
- VisibilityCondition
Returns an instance of VisibilityCondition as described by its definition.
Exceptions
- ArgumentNullException
Thrown when
definition
is null.
CreateVisibilityCondition(string)
Creates a new instance of the VisibilityCondition specified by its definition with default property values.
public VisibilityCondition CreateVisibilityCondition(string visibilityConditionIdentifier)
Parameters
visibilityConditionIdentifier
stringIdentifies VisibilityCondition which is to be created.
Returns
- VisibilityCondition
Returns an instance of VisibilityCondition as described by its definition.
Exceptions
- ArgumentNullException
Thrown when
visibilityConditionIdentifier
is null or empty.- InvalidOperationException
Thrown when VisibilityCondition with given
visibilityConditionIdentifier
is not registered in the system.