IDataContractSurrogate.GetCustomDataToExport Method (Type, Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

During schema export operations, inserts annotations into the schema for non-null return values.

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

object GetCustomDataToExport(
	Type clrType,
	Type dataContractType
)

Parameters

clrType
Type: System.Type

The CLR type to be replaced.

dataContractType
Type: System.Type

The data contract type to be annotated.

Return Value

Type: System.Object

An object that represents the annotation to be inserted into the XML schema definition.

.NET Framework
Available since 3.0
Return to top
Show: