Table of Contents

Class VisibleIfSettingsKeyEquals

Namespace
Kentico.Xperience.Admin.Base.FormAnnotations
Assembly
Kentico.Xperience.Admin.Base.Shared.dll

Specifies that the property is visible only if the value of the specified settings key equals the specified value.

public class VisibleIfSettingsKeyEquals : VisibilityConditionAttribute
Inheritance
object
Attribute
VisibleIfSettingsKeyEquals
Extension Methods

Constructors

VisibleIfSettingsKeyEquals(string, string, StringComparison)

Initializes a new instance of the VisibleIfSettingsKeyEquals class.

public VisibleIfSettingsKeyEquals(string key, string value, StringComparison comparer = StringComparison.OrdinalIgnoreCase)

Parameters

key string

The key in settings. The key needs to exist.

value string

The intended value to compare.

comparer StringComparison

String comparison method. The default value is System.StringComparison.OrdinalIgnoreCase

Properties

Comparer

Gets the string comparison method.

public StringComparison Comparer { get; }

Property Value

StringComparison

ExpectedValue

Gets the expected settings value.

public string ExpectedValue { get; }

Property Value

string

Key

Gets the settings key.

public string Key { get; }

Property Value

string