Szerkesztés

Megosztás a következőn keresztül:


SoapServices.XmlNsForClrTypeWithAssembly Property

Definition

Gets the default XML namespace prefix that should be used for XML encoding of a common language runtime class that has an assembly, but no native namespace.

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

Property Value

The default XML namespace prefix that should be used for XML encoding of a common language runtime class that has an assembly, but no native namespace.

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 have an assembly but no common language runtime namespace.
Console::WriteLine( L"The XML namespace for the CLR types "
   L"that have an assembly but no namespace, is {0}.",
   SoapServices::XmlNsForClrTypeWithAssembly );
// Print the XML namespace for the CLR types 
// that have an assembly but no common language runtime namespace.
Console.WriteLine(
    "The XML namespace for the CLR types " +
    "that have an assembly but no namespace, is {0}.",
    SoapServices.XmlNsForClrTypeWithAssembly);

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 has an assembly but no namespace, the current property returns the default XML namespace that is used.

Applies to