Export (0) Print
Expand All

DataMemberAttribute Members

When applied to the member of a type, specifies that the member is part of a data contract and is serializable by the DataContractSerializer.

The following tables list the members exposed by the DataMemberAttribute type.

  Name Description
Public method DataMemberAttribute Initializes a new instance of the DataMemberAttribute class.
Top

  Name Description
Public property EmitDefaultValue Gets or sets a value that specifies whether to serialize the default value for a field or property being serialized.
Public property IsRequired Gets or sets a value that instructs the serialization engine that the member must be present when reading or deserializing.
Public property Name Gets or sets a data member name.
Public property Order Gets or sets the order of serialization and deserialization of a member.
Public property TypeId  When implemented in a derived class, gets a unique identifier for this Attribute.(inherited from Attribute)
Top

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Returns a value indicating whether two instances of Attribute represent the same value. (inherited from Attribute)
Public method Static GetCustomAttribute  Overloaded. Retrieves a custom attribute of a specified type applied to an assembly, module, type member, or method parameter. (inherited from Attribute)
Public method Static GetCustomAttributes  Overloaded. Retrieves an array of the custom attributes applied to an assembly, module, type member, or method parameter. (inherited from Attribute)
Public method GetHashCode  Returns the hash code for this instance. (inherited from Attribute)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IsDefaultAttribute  When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (inherited from Attribute)
Public method Static IsDefined  Overloaded. Determines whether any custom attributes of a specified type are applied to an assembly, module, type member, or method parameter. (inherited from Attribute)
Public method Match  When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (inherited from Attribute)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft