Share via


SoapServices.XmlNsForClrTypeWithNs Propriété

Définition

Obtient le préfixe d'espace de noms XML à utiliser pour l'encodage XML d'une classe du Common Language Runtime qui fait partie du fichier mscorlib.dll.

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

Valeur de propriété

Préfixe d'espace de noms XML à utiliser pour l'encodage XML d'une classe du Common Language Runtime qui fait partie du fichier mscorlib.dll.

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 are a part of the Mscorlib.dll.
Console::WriteLine( L"The XML namespace for the CLR types "
L"that are part of the Mscorlib.dll, is {0}.",
   SoapServices::XmlNsForClrTypeWithNs );
// Print the XML namespace for the CLR types 
// that are a part of the Mscorlib.dll.
Console.WriteLine(
    "The XML namespace for the CLR types " +
    "that are part of the Mscorlib.dll, is {0}.",
    SoapServices.XmlNsForClrTypeWithNs);

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 fait partie de l’assembly mscorlib, l’espace de noms XML retourné par la propriété actuelle est utilisé.

S’applique à