ContextItemManager.Unsubscribe<TContextItemType> Method (SubscribeContextCallback<TContextItemType>)
Removes a subscription.
Namespace: Microsoft.Windows.Design
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
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
JScript does not support generic types or methods.
Type Parameters
- TContextItemType
Parameters
- callback
Type: Microsoft.Windows.Design.SubscribeContextCallback<TContextItemType>
The callback to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | 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>