Table of Contents

Interface IVisibilityConditionActivator

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

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

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.