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
要新增 <any>
項目之 XML 結構描述文件的命名空間。
傳回
指派給 <any>
項目宣告的任意名稱。
備註
您不需要直接呼叫 方法。
會 ServiceDescriptionReflector 從識別為 Web 服務的類別建立 ServiceDescription 物件。
類型 XmlElement 為 的欄位或屬性具有 屬性 XmlAnyElementAttribute ,會轉譯成 <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"。