Context.UnregisterDynamicProperty(String, ContextBoundObject, Context) 方法

定義

移除註冊實作 IDynamicProperty 介面的動態屬性。

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

public:
 static bool UnregisterDynamicProperty(System::String ^ name, ContextBoundObject ^ obj, System::Runtime::Remoting::Contexts::Context ^ ctx);
public static bool UnregisterDynamicProperty (string name, ContextBoundObject obj, System.Runtime.Remoting.Contexts.Context ctx);
static member UnregisterDynamicProperty : string * ContextBoundObject * System.Runtime.Remoting.Contexts.Context -> bool
Public Shared Function UnregisterDynamicProperty (name As String, obj As ContextBoundObject, ctx As Context) As Boolean

參數

name
String

要移除註冊的動態屬性名稱。

obj
ContextBoundObject

已註冊 property 的物件/Proxy。

ctx
Context

已註冊 property 的內容。

傳回

Boolean

如果物件移除註冊成功,則為 true,否則為 false

例外狀況

name 參數為 null

已同時指定物件和內容 (objctx 都不是 null)。

適用於