Context::UnregisterDynamicProperty Method (String^, ContextBoundObject^, Context^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Unregisters a dynamic property implementing the IDynamicProperty interface.
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::Infrastructure)] static bool UnregisterDynamicProperty( String^ name, ContextBoundObject^ obj, Context^ ctx )
Parameters
- name
-
Type:
System::String^
The name of the dynamic property to unregister.
- obj
-
Type:
System::ContextBoundObject^
The object/proxy for which the property is registered.
- ctx
-
Type:
System.Runtime.Remoting.Contexts::Context^
The context for which the property is registered.
Return Value
Type: System::Booleantrue if the object was successfully unregistered; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | The name parameter is null. |
| ArgumentException | Both an object as well as a context are specified (both obj and ctx are not null). |
SecurityPermission
for plugging code into the CLR infrastructure. Associated enumeration: SecurityPermissionFlag::Infrastructure.
.NET Framework
Available since 1.1
Available since 1.1
Show: