ContextItemManager.RemoveCallback 메서드

Delegate.Remove를 수행하는 도우미 메서드이며, 제네릭 콜백에 대한 프록시인 대리자의 래핑이 정상적으로 해제됩니다.

네임스페이스:  Microsoft.Windows.Design
어셈블리:  Microsoft.Windows.Design.Extensibility(Microsoft.Windows.Design.Extensibility.dll)

구문

‘선언
Protected Shared Function RemoveCallback ( _
    existing As Delegate, _
    toRemove As Delegate _
) As Delegate
protected static Delegate RemoveCallback(
    Delegate existing,
    Delegate toRemove
)
protected:
static Delegate^ RemoveCallback(
    Delegate^ existing, 
    Delegate^ toRemove
)
static member RemoveCallback : 
        existing:Delegate * 
        toRemove:Delegate -> Delegate 
protected static function RemoveCallback(
    existing : Delegate, 
    toRemove : Delegate
) : Delegate

매개 변수

  • toRemove
    형식: System.Delegate
    기존 대리자에서 제거할 대리자입니다.

반환 값

형식: System.Delegate
기존 대리자에 할당할 새 대리자입니다.

설명

Unsubscribe 구현에서 RemoveCallback을 사용합니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

ContextItemManager 클래스

Microsoft.Windows.Design 네임스페이스

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

기타 리소스

컨텍스트 아키텍처 편집

WPF Designer 확장성 이해