Interface IVisibilityConditionActivator
Defines methods for creating VisibilityConditions.
public interface IVisibilityConditionActivator
- Extension Methods
Methods
CreateVisibilityCondition(VisibilityConditionDefinition)
Creates a new instance of the VisibilityCondition specified by its definition with default property values.
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.
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.