ערוך

שתף באמצעות


SoapServices.XmlNsForClrTypeWithNs Property

Definition

Gets the XML namespace prefix that should be used for XML encoding of a common language runtime class that is part of the mscorlib.dll file.

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

Property Value

The XML namespace prefix that should be used for XML encoding of a common language runtime class that is part of the mscorlib.dll file.

Exceptions

The immediate caller does not have infrastructure permission.

Examples

The following code example shows how to use this property. This code example is part of a larger example provided for the SoapServices class.

// 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);

Remarks

WSDL and SOAP protocols encode common language runtime classes into XML namespaces. The current property specifies the format for the XML namespaces. If a common language runtime class is part of the mscorlib assembly, the XML namespace returned by the current property is used.

Applies to