Context.UnregisterDynamicProperty Method (String, ContextBoundObject, Context)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Namespace:   System.Runtime.Remoting.Contexts
Assembly:  mscorlib (in mscorlib.dll)

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.Infrastructure)]
public 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.Boolean

true 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
Return to top
Show: