ContextItemManager.Unsubscribe Method (Type, SubscribeContextCallback)
When overridden in a derived class, removes a subscription.
Namespace: Microsoft.Windows.Design
Assembly: Microsoft.Windows.Design (in Microsoft.Windows.Design.dll)
Syntax
'Declaration
Public MustOverride Sub Unsubscribe ( _
contextItemType As Type, _
callback As SubscribeContextCallback _
)
'Usage
Dim instance As ContextItemManager
Dim contextItemType As Type
Dim callback As SubscribeContextCallback
instance.Unsubscribe(contextItemType, _
callback)
public abstract void Unsubscribe(
Type contextItemType,
SubscribeContextCallback callback
)
public:
virtual void Unsubscribe(
Type^ contextItemType,
SubscribeContextCallback^ callback
) abstract
public abstract function Unsubscribe(
contextItemType : Type,
callback : SubscribeContextCallback
)
Parameters
contextItemType
Type: System.TypeThe type of context item to remove the callback from.
callback
Type: Microsoft.Windows.Design.SubscribeContextCallbackThe 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<ContextItemType>