Delegate.RemoveAll(Delegate, Delegate) 메서드

정의

한 대리자의 호출 목록에 있는 모든 항목을 다른 대리자의 호출 목록에서 제거합니다.

public:
 static Delegate ^ RemoveAll(Delegate ^ source, Delegate ^ value);
public static Delegate RemoveAll (Delegate source, Delegate value);
public static Delegate? RemoveAll (Delegate? source, Delegate? value);
static member RemoveAll : Delegate * Delegate -> Delegate
Public Shared Function RemoveAll (source As Delegate, value As Delegate) As Delegate

매개 변수

source
Delegate

value의 호출 목록을 제거하는 대리자입니다.

value
Delegate

source의 호출 목록에서 제거할 호출 목록을 제공하는 대리자입니다.

반환

source의 호출 목록이 value의 호출 목록에 있는 경우, value의 호출 목록을 가져오고 source의 호출 목록에 있는 모든 항목을 제거해서 만들어진 호출 목록을 가진 새로운 대리자입니다. sourcenull이거나 value의 호출 목록이 value의 호출 목록에 없는 경우 source를 반환합니다. value의 호출 목록이 source의 호출 목록과 같거나 sourcevalue의 호출 목록과 같은 일련의 호출 목록만 있거나 source가 null 참조인 경우 null 참조를 반환합니다.

예외

대리자 형식이 일치하지 않는 경우

호출자에게 대리자가 나타내는 메서드에 대한 액세스 권한이 없는 경우(예를 들어 메서드가 private인 경우)

설명

의 호출 목록이 호출 목록 valuesource의 연속 요소 집합과 일치하는 경우 의 호출 목록은 value 의 호출 목록 source내에서 발생합니다. 호출 목록이 의 value 호출 목록에서 source두 번 이상 발생하면 모든 발생이 제거됩니다.

적용 대상

추가 정보