ContextItemManager.Unsubscribe Method (Type, SubscribeContextCallback)
When overridden in a derived class, removes a subscription.
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
)
Parameters
- contextItemType
Type: System.Type
The type of context item to remove the callback from.
- callback
Type: Microsoft.Windows.Design.SubscribeContextCallback
The callback to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | contextItemType or callback is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design Namespace
SubscribeContextCallback<TContextItemType>