YamlUnmappedMemberHandlingAttribute class
When placed on a type, determines the YamlUnmappedMemberHandling configuration for the specific type, overriding the global YamlSerializerOptions.UnmappedMemberHandling setting.
Namespace: System.Text.Yaml.Serialization ยท Assembly: Styml.dll
public class YamlUnmappedMemberHandlingAttribute : YamlAttribute
Inheritance: object โ Attribute โ YamlAttribute โ YamlUnmappedMemberHandlingAttribute
When placed on a type, determines the YamlUnmappedMemberHandling configuration for the specific type, overriding the global YamlSerializerOptions.UnmappedMemberHandling setting.
ConstructorsLink to this heading
Initializes a new instance of YamlUnmappedMemberHandlingAttribute.
public YamlUnmappedMemberHandlingAttribute(YamlUnmappedMemberHandling unmappedMemberHandling);
Parameters
unmappedMemberHandling: The handling to apply to the current member.
PropertiesLink to this heading
UnmappedMemberHandlingLink to this heading
Specifies the unmapped member handling setting for the attribute.
public YamlUnmappedMemberHandling UnmappedMemberHandling { get; }