Home IfAttribute Class
IfAttribute Class
Cancel

IfAttribute Class

Namespace: Json.Schema.Generation

Inheritance: IfAttribute 🡒 ConditionalAttribute 🡒 Attribute 🡒 object

Implemented interfaces:

  • IConditionAttribute

Creates or amends a condition group by expecting a value in a property.

Properties

NameTypeSummary
ConditionGroupobjectIdentifies the condition group under which this attribute applies.
PropertyNamestringThe property name.
TypeIdobject 
ValueJsonNodeThe expected property value.

Constructors

IfAttribute(string propertyName, int value, object group)

Creates a new Json.Schema.Generation.IfAttribute instance.

Declaration

1
public IfAttribute(string propertyName, int value, object group)
ParameterTypeDescription
propertyNamestringThe name of the property.
valueintThe expected value for the property.
groupobjectThe condition group.

IfAttribute(string propertyName, uint value, object group)

Creates a new Json.Schema.Generation.IfAttribute instance.

Declaration

1
public IfAttribute(string propertyName, uint value, object group)
ParameterTypeDescription
propertyNamestringThe name of the property.
valueuintThe expected value for the property.
groupobjectThe condition group.

IfAttribute(string propertyName, long value, object group)

Creates a new Json.Schema.Generation.IfAttribute instance.

Declaration

1
public IfAttribute(string propertyName, long value, object group)
ParameterTypeDescription
propertyNamestringThe name of the property.
valuelongThe expected value for the property.
groupobjectThe condition group.

IfAttribute(string propertyName, ulong value, object group)

Creates a new Json.Schema.Generation.IfAttribute instance.

Declaration

1
public IfAttribute(string propertyName, ulong value, object group)
ParameterTypeDescription
propertyNamestringThe name of the property.
valueulongThe expected value for the property.
groupobjectThe condition group.

IfAttribute(string propertyName, float value, object group)

Creates a new Json.Schema.Generation.IfAttribute instance.

Declaration

1
public IfAttribute(string propertyName, float value, object group)
ParameterTypeDescription
propertyNamestringThe name of the property.
valuefloatThe expected value for the property.
groupobjectThe condition group.

IfAttribute(string propertyName, double value, object group)

Creates a new Json.Schema.Generation.IfAttribute instance.

Declaration

1
public IfAttribute(string propertyName, double value, object group)
ParameterTypeDescription
propertyNamestringThe name of the property.
valuedoubleThe expected value for the property.
groupobjectThe condition group.

IfAttribute(string propertyName, bool value, object group)

Creates a new Json.Schema.Generation.IfAttribute instance.

Declaration

1
public IfAttribute(string propertyName, bool value, object group)
ParameterTypeDescription
propertyNamestringThe name of the property.
valueboolThe expected value for the property.
groupobjectThe condition group.

IfAttribute(string propertyName, string value, object group)

Creates a new Json.Schema.Generation.IfAttribute instance.

Declaration

1
public IfAttribute(string propertyName, string value, object group)
ParameterTypeDescription
propertyNamestringThe name of the property.
valuestringThe expected value for the property.
groupobjectThe condition group.
Contents