Método ContextItemManager.Unsubscribe<TContextItemType> (SubscribeContextCallback<TContextItemType>)

Remove uma assinatura.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (em Microsoft.Windows.Design.Extensibility.dll)

Sintaxe

'Declaração
Public Sub Unsubscribe(Of TContextItemType As ContextItem) ( _
    callback As SubscribeContextCallback(Of TContextItemType) _
)
public void Unsubscribe<TContextItemType>(
    SubscribeContextCallback<TContextItemType> callback
)
where TContextItemType : ContextItem
public:
generic<typename TContextItemType>
where TContextItemType : ContextItem
void Unsubscribe(
    SubscribeContextCallback<TContextItemType>^ callback
)
member Unsubscribe : 
        callback:SubscribeContextCallback<'TContextItemType> -> unit  when 'TContextItemType : ContextItem
O JScript não oferece suporte a tipos ou métodos genéricos.

Parâmetros de tipo

  • TContextItemType

Parâmetros

Exceções

Exceção Condição
ArgumentNullException

callback is nulluma referência nula (Nothing no Visual Basic).

Segurança do .NET Framework

Consulte também

Referência

ContextItemManager Classe

Sobrecargas Unsubscribe

Namespace Microsoft.Windows.Design

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Outros recursos

Editar contexto arquitetura

Noções básicas sobre extensibilidade Designer WPF