SoapServices.XmlNsForClrTypeWithNs 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取应用于公共语言运行时类(属于 mscorlib.dll 文件的一部分)的 XML 命名空间前缀。
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
属性值
应用于公共语言运行时类(属于 mscorlib.dll 文件的 XML 编码)的 XML 命名空间前缀。
例外
即时调用方没有基础结构权限。
示例
下面的代码示例演示如何使用此属性。 该代码示例是 SoapServices 类中的一个较大示例的一部分。
// 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);
注解
WSDL 和 SOAP 协议将公共语言运行时类编码为 XML 命名空间。 当前属性指定 XML 命名空间的格式。 如果公共语言运行时类是 mscorlib 程序集的一部分,则使用当前属性返回的 XML 命名空间。