TomlUnmappedMemberHandlingAttribute Class
Determines how unmapped TOML members are handled when deserializing the annotated type.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false)]
public sealed class TomlUnmappedMemberHandlingAttribute : TomlAttribute- Inheritance
TomlAttributeTomlUnmappedMemberHandlingAttribute
Constructors
| Name | Description |
|---|---|
| TomlUnmappedMemberHandlingAttribute(TomlUnmappedMemberHandling) | Initializes a new instance of the TomlUnmappedMemberHandlingAttribute class. |
TomlUnmappedMemberHandlingAttribute(TomlUnmappedMemberHandling)
TomlUnmappedMemberHandlingAttribute.csInitializes a new instance of the TomlUnmappedMemberHandlingAttribute class.
public TomlUnmappedMemberHandlingAttribute(TomlUnmappedMemberHandling handling)Parameters
handlingTomlUnmappedMemberHandling- The unmapped member handling to apply.
Exceptions
ArgumentOutOfRangeExceptionhandlingis not a definedTomlUnmappedMemberHandling.
Properties
| Name | Description |
|---|---|
| Handling | Gets the unmapped member handling to apply. |
Gets the unmapped member handling to apply.
public TomlUnmappedMemberHandling Handling { get; }