Class VisibilityConditionConfiguration
Encapsulates VisibilityCondition with its VisibilityConditionDefinition identifier.
[JsonConverter(typeof(VisibilityConditionConfigurationJsonConverter))]
public sealed class VisibilityConditionConfiguration
- Inheritance
-
objectVisibilityConditionConfiguration
- 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
stringIdentifies type of the
visibilityCondition
.visibilityCondition
VisibilityConditionVisibility 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; }