Share via


SoapServices.XmlNsForClrTypeWithNsAndAssembly Propriedade

Definição

Obtém o prefixo de namespace de XML padrão que deve ser usado para a codificação XML de uma classe de Common Language Runtime que tem um namespace e um assembly de Common Language Runtime.

public:
 static property System::String ^ XmlNsForClrTypeWithNsAndAssembly { System::String ^ get(); };
public static string XmlNsForClrTypeWithNsAndAssembly { get; }
static member XmlNsForClrTypeWithNsAndAssembly : string
Public Shared ReadOnly Property XmlNsForClrTypeWithNsAndAssembly As String

Valor da propriedade

O prefixo de namespace XML padrão que deve ser usado para codificação XML de uma classe common language runtime que tem um namespace do Common Language Runtime e um assembly.

Exceções

O chamador imediato não tem permissão de infraestrutura.

Exemplos

O exemplo de código a seguir mostra como usar essa propriedade. Este exemplo de código faz parte de um exemplo maior fornecido para a SoapServices classe .

// Print the XML namespace for the CLR types
// that have both an assembly and a common language runtime
// namespace.
Console::WriteLine( L"The XML namespace for the CLR types "
L"that have both an assembly and a namespace, is {0}.",
   SoapServices::XmlNsForClrTypeWithNsAndAssembly );
// Print the XML namespace for the CLR types 
// that have both an assembly and a common language runtime 
// namespace.
Console.WriteLine(
    "The XML namespace for the CLR types " +
    "that have both an assembly and a namespace, is {0}.",
    SoapServices.XmlNsForClrTypeWithNsAndAssembly);

Comentários

Os protocolos WSDL e SOAP codificam classes de common language runtime em namespaces XML. A propriedade atual especifica o formato para os namespaces XML. Se uma classe common language runtime tiver um assembly e um namespace do Common Language Runtime, a propriedade atual retornará o namespace XML padrão usado.

Aplica-se a