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

ctx
Context

为其注册的 property 上下文。

返回

true 如果已成功注销对象,则为否则,为 false.

例外

参数 namenull.

同时指定对象和上下文(两者objctx均未null指定)。

适用于