Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TypeDescriptor::RemoveAssociation Method (Object^, Object^)

 

Removes an association between two objects.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public:
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")]
static void RemoveAssociation(
	Object^ primary,
	Object^ secondary
)

Parameters

primary
Type: System::Object^

The primary Object.

secondary
Type: System::Object^

The secondary Object.

Exception Condition
ArgumentNullException

One or both of the parameters are null.

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.

NamedPermissionSet

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft