Table of Contents

Class VisibilityConditionActivator

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Contains methods for creating VisibilityConditions.

public class VisibilityConditionActivator : IVisibilityConditionActivator
Inheritance
object
VisibilityConditionActivator
Implements
Extension Methods

Constructors

VisibilityConditionActivator(IVisibilityConditionDefinitionProvider)

Initializes a new instance of the VisibilityConditionActivator class.

public VisibilityConditionActivator(IVisibilityConditionDefinitionProvider visibilityConditionDefinitionProvider)

Parameters

visibilityConditionDefinitionProvider IVisibilityConditionDefinitionProvider

Retrieves 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 VisibilityConditionDefinition

Defines 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 string

Identifies 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.