Table of Contents

Class VisibilityConditionConfiguration

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

Encapsulates VisibilityCondition with its VisibilityConditionDefinition identifier.

[JsonConverter(typeof(VisibilityConditionConfigurationJsonConverter))]
public sealed class VisibilityConditionConfiguration
Inheritance
object
VisibilityConditionConfiguration
Extension Methods

Constructors

VisibilityConditionConfiguration()

Initializes a new instance of the VisibilityConditionConfiguration class. This constructor serves for the purpose of deserialization.

public VisibilityConditionConfiguration()

VisibilityConditionConfiguration(string, VisibilityCondition)

Initializes a new instance of the VisibilityConditionConfiguration class.

public VisibilityConditionConfiguration(string identifier, VisibilityCondition visibilityCondition)

Parameters

identifier string

Identifies type of the visibilityCondition.

visibilityCondition VisibilityCondition

Visibility condition.

Exceptions

ArgumentException

Thrown when identifier is null or empty.

ArgumentNullException

Thrown when visibilityCondition is null.

Properties

Identifier

Gets or sets identifier of the VisibilityCondition.

public string Identifier { get; set; }

Property Value

string

VisibilityCondition

Gets or sets visibility condition.

[JsonProperty(TypeNameHandling = TypeNameHandling.None)]
public VisibilityCondition VisibilityCondition { get; set; }

Property Value

VisibilityCondition

See Also