TypeDescriptor::RemoveAssociation Method (Object^, Object^)
Removes an association between two objects.
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.
for full access to system resources. Demand value: LinkDemand. Associated state:
Available since 2.0