Click or drag to resize
VisibilityConditionDefinition Constructor
Initializes a new instance of the VisibilityConditionDefinition class using given identifier, form component visibility condition type and name.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public VisibilityConditionDefinition(
	string identifier,
	Type visibilityConditionType,
	string name
)

Parameters

identifier
Type: SystemString
Unique identifier of the form component visibility condition.
visibilityConditionType
Type: SystemType
Type of the form component visibility condition.
name
Type: SystemString
Name of the form component visibility condition.
Exceptions
ExceptionCondition
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.

ArgumentNullExceptionThrown when visibilityConditionType is null.
See Also