SoapServices.XmlNsForClrTypeWithNsAndAssembly Propriedade

Definição

Obtém o prefixo de namespace XML padrão que deve ser usado para codificação XML de uma classe de common language runtime que tem um namespace de common language runtime e um assembly.

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 de common language runtime que tem um namespace de 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 de common language runtime, a propriedade atual retornará o namespace XML padrão usado.

Aplica-se a