OmitDefaultMemberValuesAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When applied to a type, indicates that generated serializers for the type should avoid serializing members if the member value is equal to its default value.
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)]
public sealed class OmitDefaultMemberValuesAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)>]
type OmitDefaultMemberValuesAttribute = class
inherit Attribute
Public NotInheritable Class OmitDefaultMemberValuesAttribute
Inherits Attribute
- Inheritance
-
OmitDefaultMemberValuesAttribute
- Attributes
Constructors
OmitDefaultMemberValuesAttribute() |