MethodResponse 類別

定義

重要

此 API 不符合 CLS 規範。

實作 IMethodReturnMessage 介面,以建立做為遠端物件上之方法回應的訊息。

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

public ref class MethodResponse : System::Runtime::Remoting::Messaging::IMethodReturnMessage, System::Runtime::Serialization::ISerializable
[System.CLSCompliant(false)]
[System.Serializable]
public class MethodResponse : System.Runtime.Remoting.Messaging.IMethodReturnMessage, System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class MethodResponse : System.Runtime.Remoting.Messaging.IMethodReturnMessage, System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public class MethodResponse : System.Runtime.Remoting.Messaging.IMethodReturnMessage, System.Runtime.Serialization.ISerializable
[<System.CLSCompliant(false)>]
[<System.Serializable>]
type MethodResponse = class
    interface IMethodReturnMessage
    interface IMethodMessage
    interface IMessage
    interface ISerializable
[<System.CLSCompliant(false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type MethodResponse = class
    interface IMethodReturnMessage
    interface IMethodMessage
    interface IMessage
    interface ISerializable
[<System.CLSCompliant(false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
type MethodResponse = class
    interface IMethodReturnMessage
    interface IMethodMessage
    interface IMessage
    interface ISerializable
[<System.CLSCompliant(false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type MethodResponse = class
    interface IMethodReturnMessage
    interface ISerializable
    interface IMethodMessage
    interface IMessage
Public Class MethodResponse
Implements IMethodReturnMessage, ISerializable
繼承
MethodResponse
衍生
屬性
實作

備註

MethodResponse會產生 做為遠端物件上呼叫之方法的結果,並用來傳回呼叫端的方法結果。 訊息包含傳回值和 out 引數。

類別 MethodResponse 是由.NET Framework的遠端基礎結構所使用。 您不需要直接建立 類別的 MethodResponse 實例,而是使用 IMethodReturnMessage 介面。

MethodResponse 包含訊息接收結尾的遠端資料。 遠端伺服器會將 MethodResponse 訊息傳回給用戶端。

建構函式

MethodResponse(Header[], IMethodCallMessage)

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

從遠端標頭的陣列和要求訊息,初始化 MethodResponse 類別的新執行個體。

欄位

ExternalProperties

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

指定 IDictionary 介面,表示遠端訊息的屬性集合。

InternalProperties

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

指定 IDictionary 介面,表示遠端訊息的屬性集合。

屬性

ArgCount

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

取得傳遞給方法的引數數目。

Args

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

取得傳遞給方法的引數陣列。

Exception

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

取得方法呼叫期間擲回的例外狀況,但如果方法沒有擲回例外狀況,則為 null

HasVarArgs

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

取得值,指出方法是否接受變動數目的引數。

LogicalCallContext

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

取得目前方法呼叫的 LogicalCallContext

MethodBase

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

取得受呼叫方法的 MethodBase

MethodName

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

取得受叫用方法的名稱。

MethodSignature

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

取得包含方法簽章的物件。

OutArgCount

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

取得方法呼叫中標記為 refout 參數的引數數目。

OutArgs

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

取得方法呼叫中標記為 refout 參數的引數陣列。

Properties

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

取得 IDictionary 介面,表示遠端訊息的屬性集合。

ReturnValue

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

取得方法呼叫的傳回值。

TypeName

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

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

Uri

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

取得進行方法呼叫之遠端物件的統一資源識別元 (URI)。

方法

Equals(Object)

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

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

(繼承來源 Object)
GetArg(Int32)

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

在指定索引處取得方法引數當做物件。

GetArgName(Int32)

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

在指定索引處取得方法引數的名稱。

GetHashCode()

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

做為預設雜湊函式。

(繼承來源 Object)
GetObjectData(SerializationInfo, StreamingContext)

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

GetObjectData(SerializationInfo, StreamingContext) 方法尚未實作。

GetOutArg(Int32)

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

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

GetOutArgName(Int32)

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

傳回標記為 ref 參數或 out 參數之指定引數的名稱。

GetType()

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

取得目前執行個體的 Type

(繼承來源 Object)
HeaderHandler(Header[])

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

從套用至方法的遠端標頭陣列,初始化內部序列化 (Serialization) 處理常式。

MemberwiseClone()

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

建立目前 Object 的淺層複製。

(繼承來源 Object)
RootSetObjectData(SerializationInfo, StreamingContext)

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

設定序列化設定中的方法資訊。

ToString()

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

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

(繼承來源 Object)

適用於

另請參閱