TypeDescriptor.RemoveAssociation(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Exceptions
One or both of the parameters are null
.
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.
Applies to
See also
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.