Context.UnregisterDynamicProperty(String, ContextBoundObject, Context) Context.UnregisterDynamicProperty(String, ContextBoundObject, Context) Context.UnregisterDynamicProperty(String, ContextBoundObject, Context) Context.UnregisterDynamicProperty(String, ContextBoundObject, Context) Method

定义

注销实现 IDynamicProperty 接口的动态属性。Unregisters a dynamic property implementing the IDynamicProperty interface.

此 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 String String String

要注销的动态属性的名称。The name of the dynamic property to unregister.

obj
ContextBoundObject ContextBoundObject ContextBoundObject ContextBoundObject

为其注册 property 的对象/代理。The object/proxy for which the property is registered.

ctx
Context Context Context Context

为其注册 property 的上下文。The context for which the property is registered.

返回

如果对象已成功注销,则为 true;否则为 falsetrue if the object was successfully unregistered; otherwise, false.

异常

对象和上下文都已指定(objctx 都不为 null)。Both an object as well as a context are specified (both obj and ctx are not null).

安全性

SecurityPermission
用于将代码插入到 CLR 基础结构中。for plugging code into the CLR infrastructure. 关联枚举:InfrastructureAssociated enumeration: Infrastructure.

适用于