IConstructionCallMessage 介面

定義

表示物件的建構呼叫要求。Represents the construction call request of an object.

public interface class IConstructionCallMessage : System::Runtime::Remoting::Messaging::IMethodCallMessage
[System.Runtime.InteropServices.ComVisible(true)]
public interface IConstructionCallMessage : System.Runtime.Remoting.Messaging.IMethodCallMessage
type IConstructionCallMessage = interface
    interface IMessage
    interface IMethodCallMessage
    interface IMethodMessage
Public Interface IConstructionCallMessage
Implements IMethodCallMessage
衍生
屬性
實作

備註

當使用者藉由呼叫newActivator.CreateInstance , 並線上程回到使用者程式碼之前, 建立新的用戶端啟始物件的實例時, IConstructionCallMessage會傳送至遠端應用程式。When the user creates an instance of a new client-activated object by calling new or Activator.CreateInstance and before the thread returns to the user code, a IConstructionCallMessage is sent to the remote application. 當結構訊息抵達遠端應用程式時, 它會由遠端啟動項 (預設值) 或在Activator屬性中指定的物件來處理, 並建立新的物件。When the construction message arrives at the remote application, it is processed by a remoting activator (either the default one, or one that is specified in the Activator property) and a new object is created. 然後IConstructionReturnMessage , 遠端應用程式會將傳回到本機應用程式。The remoting application then returns a IConstructionReturnMessage to the local application. IConstructionReturnMessage包含的ObjRef實例, 其會封裝遠端物件的相關資訊。The IConstructionReturnMessage contains an instance of ObjRef, which packages information about the remote object. Remoting 基礎結構會將ObjRef實例轉換成遠端物件的 proxy, 並傳回給使用者程式碼。The remoting infrastructure converts the ObjRef instance into a proxy to the remote object, which is returned to the user code.

屬性

ActivationType

取得要啟動之遠端物件的型別。Gets the type of the remote object to activate.

ActivationTypeName

取得要啟動之遠端型別的完整型別名稱。Gets the full type name of the remote type to activate.

Activator

取得或設定啟動遠端物件的啟動項 (Activator)。Gets or sets the activator that activates the remote object.

ArgCount

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

(繼承來源 IMethodMessage)
Args

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

(繼承來源 IMethodMessage)
CallSiteActivationAttributes

取得呼叫站台啟動過程屬性 (Attribute)。Gets the call site activation attributes.

ContextProperties

取得內容屬性清單,此內容屬性定義要建立物件的內容。Gets a list of context properties that define the context in which the object is to be created.

HasVarArgs

取得值,指出訊息是否具有變數引數。Gets a value indicating whether the message has variable arguments.

(繼承來源 IMethodMessage)
InArgCount

取得呼叫中未標記為 out 參數的引數的數目。Gets the number of arguments in the call that are not marked as out parameters.

(繼承來源 IMethodCallMessage)
InArgs

取得未標記為 out 參數的引數的陣列。Gets an array of arguments that are not marked as out parameters.

(繼承來源 IMethodCallMessage)
LogicalCallContext

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

(繼承來源 IMethodMessage)
MethodBase

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

(繼承來源 IMethodMessage)
MethodName

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

(繼承來源 IMethodMessage)
MethodSignature

取得含有方法簽章的物件。Gets an object containing the method signature.

(繼承來源 IMethodMessage)
Properties

取得 IDictionary,表示訊息之屬性的集合。Gets an IDictionary that represents a collection of the message's properties.

(繼承來源 IMessage)
TypeName

取得呼叫所預定的特定物件的完整 Type 名稱。Gets the full Type name of the specific object that the call is destined for.

(繼承來源 IMethodMessage)
Uri

取得呼叫所預定的特定物件的 URI。Gets the URI of the specific object that the call is destined for.

(繼承來源 IMethodMessage)

方法

GetArg(Int32)

取得當做 Object 的特定引數。Gets a specific argument as an Object.

(繼承來源 IMethodMessage)
GetArgName(Int32)

取得傳遞給方法的引數的名稱。Gets the name of the argument passed to the method.

(繼承來源 IMethodMessage)
GetInArg(Int32)

傳回未標記為 out 參數的指定引數。Returns the specified argument that is not marked as an out parameter.

(繼承來源 IMethodCallMessage)
GetInArgName(Int32)

傳回未標記為 out 參數的指定引數的名稱。Returns the name of the specified argument that is not marked as an out parameter.

(繼承來源 IMethodCallMessage)

適用於