TomlIgnoreAttribute Class

Instructs the TomlSerializer when to ignore the field or property value.

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class TomlIgnoreAttribute : TomlAttribute
Inheritance
TomlAttribute TomlIgnoreAttribute

Constructors

NameDescription
TomlIgnoreAttribute()

TomlIgnoreAttribute()

TomlIgnoreAttribute.cs
public TomlIgnoreAttribute()

No documentation is available.

Properties

NameDescription
ConditionGets or sets the condition that must be met before the member is ignored.

Gets or sets the condition that must be met before the member is ignored.

public TomlIgnoreCondition Condition { get; set; }

Property value

TomlIgnoreCondition

Exceptions

ArgumentOutOfRangeException
Value is not a defined TomlIgnoreCondition.

Remarks

The default value is TomlIgnoreCondition.Always.