IContextPropertyActivator.DeliverClientContextToServerContext 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在每個擁有此介面的用戶端上下文屬性上呼叫,當建構請求從伺服器返回用戶端時。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
bool DeliverClientContextToServerContext(System::Runtime::Remoting::Activation::IConstructionCallMessage ^ msg);
public bool DeliverClientContextToServerContext(System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Security.SecurityCritical]
public bool DeliverClientContextToServerContext(System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
abstract member DeliverClientContextToServerContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
[<System.Security.SecurityCritical>]
abstract member DeliverClientContextToServerContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
Public Function DeliverClientContextToServerContext (msg As IConstructionCallMessage) As Boolean
參數
傳回
如果成功即為 true;否則為 false。
- 屬性
備註
當建構請求抵達伺服器時,目前的方法會被呼叫於每個實 IContextPropertyActivator 作介面的伺服器上下文屬性上。 這使得上下文屬性能夠檢視每個 IConstructionCallMessage的內容。