SoapServices.XmlNsForClrTypeWithNsAndAssembly 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 contenente un assembly e uno spazio dei nomi 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

Valore della proprietà

Prefisso dello spazio dei nomi XML predefinito, che deve essere utilizzato per la codifica XML di una classe Common Language Runtime contenente un assembly e uno spazio dei nomi Common Language Runtime.

Eccezioni

Il chiamante immediato non dispone dell'autorizzazione di infrastruttura.

Esempio

Nell'esempio di codice seguente viene illustrato come usare questa proprietà. Questo esempio di codice fa parte di un esempio più grande fornito per la 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);

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 e uno spazio dei nomi common language runtime, la proprietà corrente restituisce lo spazio dei nomi XML predefinito usato.

Si applica a