Context.UnregisterDynamicProperty Method (String, ContextBoundObject, Context)

 

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 Shared Function UnregisterDynamicProperty (
	name As String,
	obj As ContextBoundObject,
	ctx As Context
) As Boolean

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: