Table of Contents

Class VisibilityConditionDefinition

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

Definition of a registered form component visibility condition.

public class VisibilityConditionDefinition : ComponentDefinitionBase, IFormBuilderDefinition, IComponentDefinition
Inheritance
object
VisibilityConditionDefinition
Implements
Inherited Members
Extension Methods

Constructors

VisibilityConditionDefinition(string, Type, string)

Initializes a new instance of the VisibilityConditionDefinition class using given identifier, form component visibility condition type and name.

public VisibilityConditionDefinition(string identifier, Type visibilityConditionType, string name)

Parameters

identifier string

Unique identifier of the form component visibility condition.

visibilityConditionType Type

Type of the form component visibility condition.

name string

Name of the form component visibility condition.

Exceptions

ArgumentException

Specified identifier is null, an empty string or identifier does not specify a valid code name.

-or-

Specified visibilityConditionType does not inherit VisibilityCondition, is an abstract type or is a generic type which is not constructed.

-or-

Specified name is null or an empty string.

ArgumentNullException

Thrown when visibilityConditionType is null.

Properties

VisibilityConditionType

Gets the type of the form component visibility condition. The type inherits VisibilityCondition.

public Type VisibilityConditionType { get; }

Property Value

Type