ContextAttribute.IsNewContextOK(Context) 方法

定義

傳回布林值,指出內容屬性是否與新內容相容。

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

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

參數

newCtx
Context

已在其中建立屬性的新內容。

傳回

如果內容屬性符合新內容,則為 true,否則為 false

實作

屬性

備註

將所有內容屬性新增至新內容之後,就會查詢它們是否在新的內容中。 內容屬性可以查看新內容之 屬性中的其他 ContextProperties 內容屬性,並判斷它是否與這些其他內容屬性相容。

注意

根據預設,方法 IsNewContextOK 會傳 true回 。

適用於