Share via


SoapServices.XmlNsForClrTypeWithNsAndAssembly Propriété

Définition

Obtient le préfixe d'espace de noms XML par défaut à utiliser pour l'encodage XML d'une classe du Common Language Runtime qui a à la fois un espace de noms du Common Language Runtime et un 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

Valeur de propriété

Préfixe d'espace de noms XML par défaut à utiliser pour l'encodage XML d'une classe du Common Language Runtime qui a à la fois un espace de noms du Common Language Runtime et un assembly.

Exceptions

L'appelant immédiat n'a pas d'autorisation d'accès à l'infrastructure.

Exemples

L’exemple de code suivant montre comment utiliser cette propriété. Cet exemple de code fait partie d’un exemple plus grand fourni pour 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);

Remarques

Les protocoles WSDL et SOAP encodent des classes Common Language Runtime dans des espaces de noms XML. La propriété actuelle spécifie le format des espaces de noms XML. Si une classe Common Language Runtime a un assembly et un espace de noms Common Language Runtime, la propriété actuelle retourne l’espace de noms XML par défaut utilisé.

S’applique à