XmlReflectionMember 類別

定義

提供 .NET Framework Web 服務方法中的程式碼實體 (Entity) 與針對 SOAP Web 服務所定義之 Web 服務描述語言 (WSDL) 訊息內容之間的對應。Provides mappings between code entities in .NET Framework Web service methods and the content of Web Services Description Language (WSDL) messages that are defined for SOAP Web services.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public ref class XmlReflectionMember
public class XmlReflectionMember
type XmlReflectionMember = class
Public Class XmlReflectionMember
繼承
XmlReflectionMember

備註

不直接使用類別。 XmlReflectionMemberThe XmlReflectionMember class is not used directly. 相反地, 它是用來:Instead, it is used:

在反映 SOAP Web 服務方法時, 會產生XmlReflectionMember物件的陣列, 代表 WSDL 訊息定義的內容。During reflection of a SOAP Web service method, arrays of XmlReflectionMember objects are produced that represent the contents of WSDL message definitions. 系統會針對屬於 SOAP Web 服務方法的下列每個專案產生陣列:An array is produced for each of the following items that belong to a SOAP Web service method:

  • 輸入參數。Input parameters.

  • 輸出參數和傳回值。Output parameters and return values.

  • 透過屬性要求 SOAP 標頭。Request SOAP headers via attributes.

  • 透過屬性回應 SOAP 標頭。Response SOAP headers via attributes.

SoapReflectionImporter XmlReflectionMember類別會將陣列轉譯為包含XmlMemberMapping集合的, 以供進一步處理。 XmlMembersMapping XmlReflectionImporterThe SoapReflectionImporter and XmlReflectionImporter classes translate an XmlReflectionMember array into an XmlMembersMapping that contains an XmlMemberMapping collection, for further processing.

建構函式

XmlReflectionMember()

初始化 XmlReflectionMember 類別的新執行個體。Initializes a new instance of the XmlReflectionMember class.

屬性

IsReturnValue

取得或設定值,指出 XmlReflectionMember 是否表示 Web 服務方法傳回值,相對於輸出參數。Gets or sets a value that indicates whether the XmlReflectionMember represents a Web service method return value, as opposed to an output parameter.

MemberName

取得或設定這項對應之 Web 服務方法成員的名稱。Gets or sets the name of the Web service method member for this mapping.

MemberType

取得或設定由此對應所表示之 Web 服務方法成員程式碼實體的型別。Gets or sets the type of the Web service method member code entity that is represented by this mapping.

OverrideIsNullable

取得或設定值,表示對應之 XML 項目定義的 isNullable 屬性值為 falseGets or sets a value that indicates that the value of the corresponding XML element definition's isNullable attribute is false.

SoapAttributes

取得或設定 SoapAttributes,其中含有已套用至成員程式碼實體之 SOAP 相關屬性的集合。Gets or sets a SoapAttributes with the collection of SOAP-related attributes that have been applied to the member code entity.

XmlAttributes

取得或設定 XmlAttributes,其中含有已套用至成員程式碼實體之 XmlSerializer 相關屬性的集合。Gets or sets an XmlAttributes with the collection of XmlSerializer-related attributes that have been applied to the member code entity.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱