DataContract 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.
Represents a data contract that defines serialization and deserialization behavior for types.
public ref class DataContract abstract
public abstract class DataContract
type DataContract = class
Public MustInherit Class DataContract
- Inheritance
-
DataContract
- Derived
Properties
| Name | Description |
|---|---|
| BaseContract |
Gets the base data contract for this data contract. |
| ContractType |
Gets the contract type name for this data contract. |
| DataMembers | |
| IsBuiltInDataContract | |
| IsISerializable | |
| IsReference |
Gets a value indicating whether the data contract is serialized by reference. |
| IsValueType |
Gets a value indicating whether the data contract represents a value type. |
| KnownDataContracts | |
| OriginalUnderlyingType | |
| TopLevelElementName | |
| TopLevelElementNamespace | |
| UnderlyingType | |
| XmlName |
Gets the XML qualified name for the data contract. |
Methods
| Name | Description |
|---|---|
| Equals(Object) | |
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetArrayTypeName(Boolean) | |
| GetBuiltInDataContract(String, String) | |
| GetHashCode() | |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| GetXmlName(Type) | |
| IsDictionaryLike(String, String, String) | |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |