Context.UnregisterDynamicProperty(String, ContextBoundObject, Context) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
取消注册实现接口的 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
要注销的动态属性的名称。
为其注册的对象/代理 property 。
- ctx
- Context
为其注册的 property 上下文。
返回
true 如果已成功注销对象,则为否则,为 false.
例外
参数 name 为 null.
同时指定对象和上下文(两者objctx均未null指定)。