ConstructionResponse 類別

定義

重要

此 API 不符合 CLS 規範。

實作 IConstructionReturnMessage 介面,以建立訊息來回應執行個體化 (Instantiate) 遠端物件的呼叫。Implements the IConstructionReturnMessage interface to create a message that responds to a call to instantiate a remote object.

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

public ref class ConstructionResponse : System::Runtime::Remoting::Messaging::MethodResponse, System::Runtime::Remoting::Activation::IConstructionReturnMessage
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
[System.Serializable]
public class ConstructionResponse : System.Runtime.Remoting.Messaging.MethodResponse, System.Runtime.Remoting.Activation.IConstructionReturnMessage
type ConstructionResponse = class
    inherit MethodResponse
    interface IConstructionReturnMessage
    interface IMethodReturnMessage
    interface IMethodMessage
    interface IMessage
Public Class ConstructionResponse
Inherits MethodResponse
Implements IConstructionReturnMessage
繼承
ConstructionResponse
屬性
實作

備註

物件會傳回IConstructionCallMessage與介面一起傳送之結構要求的結果。 ConstructionResponseA ConstructionResponse object returns the result of a construction request sent with the IConstructionCallMessage interface.

ConstructionResponse類別是由 .NET Framework 的遠端基礎結構所使用。The ConstructionResponse class is used by the remoting infrastructure of the .NET Framework. 您不需要直接建立ConstructionResponse類別的實例, 而是IConstructionReturnMessage使用介面。You do not need to create an instance of the ConstructionResponse class directly; instead, use the IConstructionReturnMessage interface.

建構函式

ConstructionResponse(Header[], IMethodCallMessage)

從遠端標頭的陣列和要求訊息,初始化 ConstructionResponse 類別的新執行個體。Initializes a new instance of the ConstructionResponse class from an array of remoting headers and a request message.

欄位

ExternalProperties

指定 IDictionary 介面,表示遠端訊息的屬性集合。Specifies an IDictionary interface that represents a collection of the remoting message's properties.

(繼承來源 MethodResponse)
InternalProperties

指定 IDictionary 介面,表示遠端訊息的屬性集合。Specifies an IDictionary interface that represents a collection of the remoting message's properties.

(繼承來源 MethodResponse)

屬性

ArgCount

取得傳遞給方法的引數數目。Gets the number of arguments passed to the method.

(繼承來源 MethodResponse)
Args

取得傳遞給方法的引數陣列。Gets an array of arguments passed to the method.

(繼承來源 MethodResponse)
Exception

取得方法呼叫期間擲回的例外狀況,但如果方法沒有擲回例外狀況,則為 nullGets the exception thrown during the method call, or null if the method did not throw an exception.

(繼承來源 MethodResponse)
HasVarArgs

取得值,指出方法是否接受變動數目的引數。Gets a value that indicates whether the method can accept a variable number of arguments.

(繼承來源 MethodResponse)
LogicalCallContext

取得目前方法呼叫的 LogicalCallContextGets the LogicalCallContext for the current method call.

(繼承來源 MethodResponse)
MethodBase

取得受呼叫方法的 MethodBaseGets the MethodBase of the called method.

(繼承來源 MethodResponse)
MethodName

取得受叫用方法的名稱。Gets the name of the invoked method.

(繼承來源 MethodResponse)
MethodSignature

取得包含方法簽章的物件。Gets an object that contains the method signature.

(繼承來源 MethodResponse)
OutArgCount

取得方法呼叫中標記為 refout 參數的引數數目。Gets the number of arguments in the method call marked as ref or out parameters.

(繼承來源 MethodResponse)
OutArgs

取得方法呼叫中標記為 refout 參數的引數陣列。Gets an array of arguments in the method call that are marked as ref or out parameters.

(繼承來源 MethodResponse)
Properties

取得 IDictionary 介面,表示遠端訊息的屬性集合。Gets an IDictionary interface that represents a collection of the remoting message's properties.

ReturnValue

取得方法呼叫的傳回值。Gets the return value of the method call.

(繼承來源 MethodResponse)
TypeName

取得進行方法呼叫之遠端物件的完整型別名稱。Gets the full type name of the remote object on which the method call is being made.

(繼承來源 MethodResponse)
Uri

取得進行方法呼叫之遠端物件的統一資源識別元 (URI)。Gets the Uniform Resource Identifier (URI) of the remote object on which the method call is being made.

(繼承來源 MethodResponse)

方法

Equals(Object)

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

(繼承來源 Object)
GetArg(Int32)

在指定索引處取得方法引數當做物件。Gets a method argument, as an object, at a specified index.

(繼承來源 MethodResponse)
GetArgName(Int32)

在指定索引處取得方法引數的名稱。Gets the name of a method argument at a specified index.

(繼承來源 MethodResponse)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

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

GetObjectData(SerializationInfo, StreamingContext) 方法尚未實作。The GetObjectData(SerializationInfo, StreamingContext) method is not implemented.

(繼承來源 MethodResponse)
GetOutArg(Int32)

傳回標記為 ref 參數或 out 參數的指定引數。Returns the specified argument marked as a ref parameter or an out parameter.

(繼承來源 MethodResponse)
GetOutArgName(Int32)

傳回標記為 ref 參數或 out 參數之指定引數的名稱。Returns the name of the specified argument marked as a ref parameter or an out parameter.

(繼承來源 MethodResponse)
GetType()

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

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

從套用至方法的遠端標頭陣列,初始化內部序列化 (Serialization) 處理常式。Initializes an internal serialization handler from an array of remoting headers that are applied to a method.

(繼承來源 MethodResponse)
MemberwiseClone()

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

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

設定序列化設定中的方法資訊。Sets method information from serialization settings.

(繼承來源 MethodResponse)
ToString()

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

(繼承來源 Object)

適用於

另請參閱