Home MaxLengthAttribute Class
MaxLengthAttribute Class
Cancel

MaxLengthAttribute Class

Namespace: Json.Schema.Generation

Inheritance: MaxLengthAttribute 🡒 ConditionalAttribute 🡒 Attribute 🡒 object

Implemented interfaces:

  • INestableAttribute
  • IAttributeHandler

Applies a maxLength keyword.

Properties

NameTypeSummary
ConditionGroupobjectIdentifies the condition group under which this attribute applies.
GenericParameterintThe index of the parameter to which the attribute should apply. Default is -1 to indicate the root.
LengthuintThe maximum length.
TypeIdobject 

Constructors

MaxLengthAttribute(uint length)

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

Declaration

1
public MaxLengthAttribute(uint length)
ParameterTypeDescription
lengthuintThe value.
Contents