Edit

Share via


XsdDataContractExporter.GetRootElementName(Type) Method

Definition

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

public:
 System::Xml::XmlQualifiedName ^ GetRootElementName(Type ^ type);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public System.Xml.XmlQualifiedName? GetRootElementName(Type type);
public System.Xml.XmlQualifiedName? GetRootElementName(Type type);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public System.Xml.XmlQualifiedName? GetRootElementName(Type type);
public System.Xml.XmlQualifiedName GetRootElementName(Type type);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
member this.GetRootElementName : Type -> System.Xml.XmlQualifiedName
member this.GetRootElementName : Type -> System.Xml.XmlQualifiedName
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
member this.GetRootElementName : Type -> System.Xml.XmlQualifiedName
Public Function GetRootElementName (type As Type) As XmlQualifiedName

Parameters

type
Type

The Type to query.

Returns

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

Attributes

Exceptions

The type argument is null.

Applies to