SoapServices.XmlNsForClrTypeWithAssembly Proprietà

Definizione

Ottiene il prefisso dello spazio dei nomi XML predefinito che deve essere utilizzato per la codifica XML di una classe Common Language Runtime con un assembly, ma senza spazio dei nomi nativo.

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

Valore della proprietà

Prefisso dello spazio dei nomi XML predefinito che deve essere usato per la codifica XML di una classe Common Language Runtime con un assembly, ma senza spazio dei nomi nativo.

Eccezioni

Il chiamante immediato non dispone dell'autorizzazione dell'infrastruttura.

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare questa proprietà. Questo esempio di codice fa parte di un esempio più ampio fornito per la SoapServices classe .

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

Commenti

I protocolli WSDL e SOAP codificano classi Common Language Runtime in spazi dei nomi XML. La proprietà corrente specifica il formato per gli spazi dei nomi XML. Se una classe Common Language Runtime ha un assembly ma non uno spazio dei nomi, la proprietà corrente restituisce lo spazio dei nomi XML predefinito utilizzato.

Si applica a