語言

IContextProperty.IsNewContextOK(Context) 方法

定義

回傳一個布林值,表示上下文屬性是否與新上下文相容。

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

public:
 bool IsNewContextOK(System::Runtime::Remoting::Contexts::Context ^ newCtx);
public bool IsNewContextOK(System.Runtime.Remoting.Contexts.Context newCtx);
[System.Security.SecurityCritical]
public bool IsNewContextOK(System.Runtime.Remoting.Contexts.Context newCtx);
abstract member IsNewContextOK : System.Runtime.Remoting.Contexts.Context -> bool
[<System.Security.SecurityCritical>]
abstract member IsNewContextOK : System.Runtime.Remoting.Contexts.Context -> bool
Public Function IsNewContextOK (newCtx As Context) As Boolean

參數

newCtx
Context

創造出新的情境 ContextProperty 。

傳回

true如果上下文性質能與其他上下文性質共存;否則,。 false

屬性

備註

當所有上下文屬性都加入到新上下文後,會詢問它們在新上下文中是否可用。 上下文屬性可以檢視其他 newCtx 上下文屬性,判斷是否與其他上下文屬性相容。

適用於