Unsubscribe(TContextItemType) Method (SubscribeContextCallback(TContextItemType))
Removes a subscription.
Namespace: Microsoft.Data.Tools.Design.Core.Context
Assembly: Microsoft.Data.Tools.Design.Core (in Microsoft.Data.Tools.Design.Core.dll)
Syntax
'Declaration
Public Sub Unsubscribe(Of TContextItemType As ContextItem) ( _
callback As SubscribeContextCallback(Of TContextItemType) _
)
'Usage
Dim instance As ContextItemCollection
Dim callback As SubscribeContextCallback(Of TContextItemType)
instance.Unsubscribe(callback)
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 and methods.
Type Parameters
- TContextItemType
Parameters
- callback
Type: Microsoft.Data.Tools.Design.Core.Context..::..SubscribeContextCallback< (Of < ( <'TContextItemType> ) > ) >
The callback to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | if callback is null. |