IContextAttribute.IsContextOK(Context, IConstructionCallMessage) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個布林值,表示指定的上下文是否符合上下文屬性的要求。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
bool IsContextOK(System::Runtime::Remoting::Contexts::Context ^ ctx, System::Runtime::Remoting::Activation::IConstructionCallMessage ^ msg);
public bool IsContextOK(System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Security.SecurityCritical]
public bool IsContextOK(System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
abstract member IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
[<System.Security.SecurityCritical>]
abstract member IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
Public Function IsContextOK (ctx As Context, msg As IConstructionCallMessage) As Boolean
參數
- ctx
- Context
用上下文來檢查當前上下文屬性。
建構呼叫的參數需與當前上下文進行檢查。
傳回
true如果 pass in context 沒問題;否則,。 false
- 屬性