XmlSchemaExporter.ExportAnyType 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将对象或类型的元素声明添加到 SOAP 消息或 XmlSchema 对象。
重载
ExportAnyType(String) |
此 API 支持产品基础结构,不能在代码中直接使用。 将 |
ExportAnyType(XmlMembersMapping) |
此 API 支持产品基础结构,不能在代码中直接使用。 将对象或类型的元素声明添加到 SOAP 消息或 XmlSchema 对象。 |
ExportAnyType(String)
将 <any>
元素导出到由指定命名空间标识的 XmlSchema 对象。
此 API 支持产品基础结构,不能在代码中直接使用。
public:
System::String ^ ExportAnyType(System::String ^ ns);
public string ExportAnyType (string? ns);
public string ExportAnyType (string ns);
member this.ExportAnyType : string -> string
Public Function ExportAnyType (ns As String) As String
参数
- ns
- String
向 XML 架构文档的命名空间添加 <any>
元素。
返回
向 <any>
元素声明分配任意名称。
注解
无需直接调用该方法。
从 ServiceDescriptionReflector 标识为 Web 服务的类创建 ServiceDescription 对象。
具有特性XmlAnyElementAttribute的XmlElement字段或类型属性将转换为 <any> 元素。
适用于
ExportAnyType(XmlMembersMapping)
将对象或类型的元素声明添加到 SOAP 消息或 XmlSchema 对象。
此 API 支持产品基础结构,不能在代码中直接使用。
public:
System::String ^ ExportAnyType(System::Xml::Serialization::XmlMembersMapping ^ members);
public string? ExportAnyType (System.Xml.Serialization.XmlMembersMapping members);
public string ExportAnyType (System.Xml.Serialization.XmlMembersMapping members);
member this.ExportAnyType : System.Xml.Serialization.XmlMembersMapping -> string
Public Function ExportAnyType (members As XmlMembersMapping) As String
参数
- members
- XmlMembersMapping
包含要导出的映射的 XmlMembersMapping。
返回
追加有一个整数的字符串“any”。