TypeDescriptor.RemoveAssociations(Object) Método

Definición

Quita todas las asociaciones de un objeto principal.Removes all associations for a primary object.

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

Parámetros

primary
Object

Object principal de una asociación.The primary Object in an association.

Excepciones

primary es null.primary is null.

Comentarios

El RemoveAssociations método quita todas las asociaciones entre un objeto primario y todos sus objetos secundarios, creados mediante llamadas al CreateAssociation método.The RemoveAssociations method removes all associations between a primary object and all of its secondary objects, created by calls to the CreateAssociation method.

WeakReferenceSe utiliza para mantener la asociación entre el objeto principal y el secundario; por lo tanto, este método no afecta al momento en que la recolección de elementos no utilizados finaliza o reclama el primario de los objetos secundarios.A WeakReference is used to maintain the association between the primary and secondary object; therefore, this method does not influence when either the primary of secondary objects are finalized or reclaimed by garbage collection.

Se aplica a

Consulte también