TypeDescriptor.RemoveAssociation(Object, Object) TypeDescriptor.RemoveAssociation(Object, Object) TypeDescriptor.RemoveAssociation(Object, Object) TypeDescriptor.RemoveAssociation(Object, Object) Method

Definition

Removes an association between two objects.

public:
 static void RemoveAssociation(System::Object ^ primary, System::Object ^ secondary);
public static void RemoveAssociation (object primary, object secondary);
static member RemoveAssociation : obj * obj -> unit
Public Shared Sub RemoveAssociation (primary As Object, secondary As Object)

Parameters

primary
Object Object Object Object

The primary Object.

secondary
Object Object Object Object

The secondary Object.

Exceptions

Remarks

The RemoveAssociation method removes an association between two objects formed by the CreateAssociation method.

A WeakReference is used to maintain the association between the primary and secondary object; therefore, this method does not influence when either object is finalized or reclaimed by garbage collection.

Security

NamedPermissionSet
for full access to system resources. Demand value: LinkDemand. Associated state:

Applies to

See also