Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SoapServices.XmlNsForClrTypeWithAssembly Property

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.

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)

public static string XmlNsForClrTypeWithAssembly { get; }
/** @property */
public static String get_XmlNsForClrTypeWithAssembly ()

public static function get XmlNsForClrTypeWithAssembly () : String

Not applicable.

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.
Exception typeCondition

SecurityException

The immediate caller does not have infrastructure permission.

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.

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(
    "The XML namespace for the CLR types " +
    "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.get_XmlNsForClrTypeWithAssembly());

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.