XsdDataContractExporter.GetSchemaTypeName Method (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.

Returns the contract name and contract namespace for the Type.

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

public XmlQualifiedName GetSchemaTypeName(
	Type type
)

Parameters

type
Type: System.Type

The Type that was exported.

Return Value

Type: System.Xml.XmlQualifiedName

An XmlQualifiedName that represents the contract name of the type and its namespace.

Exception Condition
ArgumentNullException

The type argument is null.

.NET Framework
Available since 3.0
Return to top
Show: