XsdDataContractExporter::GetRootElementName Method (Type^)

 

Returns the top-level name and namespace for the Type.

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

public:
XmlQualifiedName^ GetRootElementName(
	Type^ type
)

Parameters

type
Type: System::Type^

The Type to query.

Return Value

Type: System.Xml::XmlQualifiedName^

The XmlQualifiedName that represents the top-level name and namespace for this Type, which is written to the stream when writing this object.

Exception Condition
ArgumentNullException

The type argument is null.

.NET Framework
Available since 3.0
Return to top
Show: