MethodReturnMessageWrapper 類別

定義

IMethodReturnMessage 作介面以建立訊息,作為對遠端物件方法呼叫的回應。

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

public ref class MethodReturnMessageWrapper : System::Runtime::Remoting::Messaging::InternalMessageWrapper, System::Runtime::Remoting::Messaging::IMethodReturnMessage
public class MethodReturnMessageWrapper : System.Runtime.Remoting.Messaging.InternalMessageWrapper, System.Runtime.Remoting.Messaging.IMethodReturnMessage
[System.Runtime.InteropServices.ComVisible(true)]
public class MethodReturnMessageWrapper : System.Runtime.Remoting.Messaging.InternalMessageWrapper, System.Runtime.Remoting.Messaging.IMethodReturnMessage
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public class MethodReturnMessageWrapper : System.Runtime.Remoting.Messaging.InternalMessageWrapper, System.Runtime.Remoting.Messaging.IMethodReturnMessage
type MethodReturnMessageWrapper = class
    inherit InternalMessageWrapper
    interface IMethodReturnMessage
    interface IMethodMessage
    interface IMessage
[<System.Runtime.InteropServices.ComVisible(true)>]
type MethodReturnMessageWrapper = class
    inherit InternalMessageWrapper
    interface IMethodReturnMessage
    interface IMethodMessage
    interface IMessage
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
type MethodReturnMessageWrapper = class
    inherit InternalMessageWrapper
    interface IMethodReturnMessage
    interface IMethodMessage
    interface IMessage
Public Class MethodReturnMessageWrapper
Inherits InternalMessageWrapper
Implements IMethodReturnMessage
繼承
MethodReturnMessageWrapper
屬性
實作

備註

MethodReturnMessageWrapper 類別被 .NET 框架的遠端基礎設施所使用。 你不需要直接建立類別的實例 MethodReturnMessageWrapper ;而是直接使用 IMethodReturnMessage 介面。

MethodReturnMessageWrapper 類別會將遠端資料包裝以在訊息匯入之間傳遞。 遠端伺服器會 MethodReturnMessageWrapper 根據客戶端請求向客戶端發送訊息。

建構函式

名稱 Description
MethodReturnMessageWrapper(IMethodReturnMessage)

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

IMethodReturnMessage 和 包裹起來,產生 MethodReturnMessageWrapper

欄位

名稱 Description
WrappedMessage

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

代表由訊息包裝器包裹的請求或回應 IMethodMessage 介面。

(繼承來源 InternalMessageWrapper)

屬性

名稱 Description
ArgCount

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

取得傳入方法的參數數。

Args

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

會接收一組參數傳入方法。

Exception

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

在方法呼叫時會拋出例外,或 null 是方法未拋出例外時。

HasVarArgs

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

會取得一個標誌,指示方法是否能接受可變數量的參數。

LogicalCallContext

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

會取得目前方法呼叫的 。LogicalCallContext

MethodBase

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

取得被調用方法的 。MethodBase

MethodName

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

會獲得所調用方法的名稱。

MethodSignature

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

會取得包含方法簽名的物件。

OutArgCount

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

取得方法呼叫中標記 ref 為參數的 out 參數數量。

OutArgs

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

在方法呼叫中會取得一組參數陣列,這些參數被標記為 ref 參數 out

Properties

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

一個 IDictionary 介面,代表遠端訊息屬性的集合。

ReturnValue

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

取得方法呼叫的回傳值。

TypeName

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

取得執行方法呼叫的遠端物件的完整型別名稱。

Uri

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

取得呼叫方法時遠端物件的統一資源識別碼(URI)。

方法

名稱 Description
Equals(Object)

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

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetArg(Int32)

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

在指定索引處取得一個方法參數,作為物件。

GetArgName(Int32)

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

取得指定索引中方法參數的名稱。

GetHashCode()

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

做為預設哈希函式。

(繼承來源 Object)
GetOutArg(Int32)

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

回傳標記為 ref 參數或參數 out 的指定參數。

GetOutArgName(Int32)

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

回傳指定參數名稱,標記為 ref 參數或參數 out

GetType()

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

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

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

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

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

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於

另請參閱