The following tables list the members exposed by the OptionalAttribute type.

Name Description
Public property DefaultsTo Gets or sets the default value to transfer if the decorated member is null reference (Nothing in Visual Basic) or empty.
Public property DefaultsToField Gets or sets the field to transfer if the decorated member is null reference (Nothing in Visual Basic) or empty.
Public property DefaultsToProperty Gets or sets the property to transfer if the decorated member is null reference (Nothing in Visual Basic) or empty.
Public property InvalidInputMessage Gets or sets the invalid input message. (inherited from ValidateAttribute).
Public property TypeId When implemented in a derived class, gets a unique identifier for this Attribute. (inherited from Attribute).
Public property ValidationOrder Gets or sets the validation order. (inherited from ValidateAttribute).
Top