YamlIgnoreAttribute Class
Instructs the YamlSerializer when to ignore the public field or public read/write property value.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)]
public sealed class YamlIgnoreAttribute : YamlAttributeRemarks
When applied to a type, it sets the default ignore condition for all its properties and fields. When applied to a member, it overrides the type-level condition and YamlSerializerOptions.DefaultIgnoreCondition for that member.
- Inheritance
YamlAttributeYamlIgnoreAttribute
Constructors
| Name | Description |
|---|---|
| YamlIgnoreAttribute() |
YamlIgnoreAttribute()
YamlIgnoreAttribute.cspublic YamlIgnoreAttribute()No documentation is available.
Properties
| Name | Description |
|---|---|
| Condition | Gets or sets the condition that must be met before the member is ignored. |
Condition
YamlIgnoreAttribute.csGets or sets the condition that must be met before the member is ignored.
public YamlIgnoreCondition Condition { get; set; }