ContextItemManager.Unsubscribe-Methode (Type, SubscribeContextCallback)
Entfernt bei Überschreibung in einer abgeleiteten Klasse ein Abonnement.
Namespace: Microsoft.Windows.Design
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public MustOverride Sub Unsubscribe ( _
contextItemType As Type, _
callback As SubscribeContextCallback _
)
public abstract void Unsubscribe(
Type contextItemType,
SubscribeContextCallback callback
)
public:
virtual void Unsubscribe(
Type^ contextItemType,
SubscribeContextCallback^ callback
) abstract
abstract Unsubscribe :
contextItemType:Type *
callback:SubscribeContextCallback -> unit
public abstract function Unsubscribe(
contextItemType : Type,
callback : SubscribeContextCallback
)
Parameter
- contextItemType
Typ: System.Type
Der Typ des Kontextelements, aus dem der Rückruf entfernt werden soll.
- callback
Typ: Microsoft.Windows.Design.SubscribeContextCallback
Der zu entfernende Rückruf.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | contextItemType oder callback ist nullNULL-Verweis (Nothing in Visual Basic). |
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.
Siehe auch
Referenz
Microsoft.Windows.Design-Namespace
SubscribeContextCallback<TContextItemType>