XsdDataContractExporter.GetRootElementName(Type) Método

Definição

Devolve o nome de topo e o espaço de nomes para o 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

Parâmetros

type
Type

A Type consulta to.

Devoluções

O XmlQualifiedName que representa o nome e espaço de nomes de topo para este Type, que é escrito no fluxo ao escrever este objeto.

Atributos

Exceções

O type argumento é null.

Aplica-se a