ISerializationSurrogateProvider2.GetReferencedTypeOnImport Method

Definition

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

public Type? GetReferencedTypeOnImport (string typeName, string typeNamespace, object? customData);

Parameters

typeName
String

The name of the type in the schema.

typeNamespace
String

The namespace of the type in the schema.

customData
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.

Returns

The Type to use for the referenced type.

Applies to

Product Versions
.NET 7, 8, 9