Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDataContractSurrogate::GetReferencedTypeOnImport Method (String^, String^, Object^)

 

During schema import, returns the type referenced by the schema.

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

Type^ GetReferencedTypeOnImport(
	String^ typeName,
	String^ typeNamespace,
	Object^ customData
)

Parameters

typeName
Type: System::String^

The name of the type in schema.

typeNamespace
Type: System::String^

The namespace of the type in schema.

customData
Type: System::Object^

The object that represents the annotation inserted into the XML schema definition, which is data that can be used for finding the referenced type.

Return Value

Type: System::Type^

The Type to use for the referenced type.

Null should be returned if a CLR type does not exist for representing the schema type. This will cause a new type to be generated during schema import.

The following example shows an implementation of the GetReferencedTypeOnImport method.

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

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft