YamlUnionCaseProperty Class
Describes a mapping key declared by a union case that serializes as a YAML mapping.
public sealed class YamlUnionCasePropertyConstructors
| Name | Description |
|---|---|
| YamlUnionCaseProperty(string, bool) | Initializes a new instance of the YamlUnionCaseProperty class. |
YamlUnionCaseProperty(string, bool)
YamlUnionCaseProperty.csInitializes a new instance of the YamlUnionCaseProperty class.
Parameters
namestring- The mapping key, after the naming policy has been applied.
isRequiredbool- Whether the payload must contain the key.
Exceptions
ArgumentNullExceptionnameisnull.
Properties
| Name | Description |
|---|---|
| IsRequired | Gets a value indicating whether the payload must contain the key. |
| Name | Gets the mapping key, after the naming policy has been applied. |