IDataContractSurrogate::GetDataContractType Method (Type^)

 

During serialization, deserialization, and schema import and export, returns a data contract type that substitutes the specified type.

Namespace:   System.Runtime.Serialization
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

Type^ GetDataContractType(
	Type^ type
)

Parameters

type
Type: System::Type^

The CLR type Type to substitute.

Return Value

Type: System::Type^

The Type to substitute for the type value. This type must be serializable by the DataContractSerializer. For example, it must be marked with the DataContractAttribute attribute or other mechanisms that the serializer recognizes.

The following example shows an implementation of the GetDataContractType method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: