TypeDescriptor.RemoveAssociation(Object, Object) 메서드

정의

두 개체 간의 연결을 제거합니다.

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)

매개 변수

primary
Object

기본 Object입니다.

secondary
Object

보조 Object입니다.

예외

매개 변수 중 하나 또는 둘 다가 null입니다.

설명

메서드는 RemoveAssociation 메서드에 의해 CreateAssociation 형성된 두 개체 간의 연결을 제거합니다.

WeakReference 은 주 개체와 보조 개체 간의 연결을 유지하는 데 사용되므로 가비지 수집을 통해 개체를 완료하거나 회수할 때 이 메서드는 영향을 주지 않습니다.

적용 대상

추가 정보