Share via


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 ,並判斷它是否與這些其他內容屬性相容。

適用於