Upraviť

Zdieľať cez


SoapServices.XmlNsForClrType Property

Definition

Gets the XML namespace prefix for common language runtime types.

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

Property Value

The XML namespace prefix for common language runtime types.

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.
Console::WriteLine( L"The XML namespace for the CLR types "
L"is {0}.", SoapServices::XmlNsForClrType );
// Print the XML namespace for the CLR types.
Console.WriteLine(
    "The XML namespace for the CLR types " + 
    "is {0}.",
    SoapServices.XmlNsForClrType);

Remarks

WSDL and SOAP protocols encode common language runtime classes into XML namespaces. The current property specifies the format for the XML namespaces. All XML namespaces for a common language runtime class start with the String that the current property returns.

Applies to