TypeDescriptor.RemoveAssociation(Object, Object) Método

Definición

Quita una asociación entre dos objetos.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)

Parámetros

primary
Object

Object principal.The primary Object.

secondary
Object

Object secundario.The secondary Object.

Excepciones

Uno o ambos parámetros son null.One or both of the parameters are null.

Comentarios

El RemoveAssociation método quita una asociación entre dos objetos que forman el CreateAssociation método.The RemoveAssociation method removes an association between two objects formed by the CreateAssociation method.

WeakReferenceSe utiliza para mantener la asociación entre el objeto principal y el secundario; por lo tanto, este método no influye en el momento en que la recolección de elementos no utilizados finaliza o reclama un objeto.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.

Se aplica a

Consulte también