FeatureAttribute.DefaultValue

FeatureAttribute.DefaultValue property

Gets or sets a value for the attribute, that indicates missing data.

public object DefaultValue { get; set; }

Exceptions

exceptioncondition
InvalidOperationExceptionThe attribute is locked.
InvalidOperationExceptionThe attribute does not allow null values.

Remarks

This is the value representing a missing piece of information, when an attribute does not allow the null value. For attributes that do allow null values (CanBeNull == true), DefaultValue is null unless explicitly changed.

See Also