Unsubscribe(TServiceType) Method (SubscribeServiceCallback(TServiceType))
Removes a subscription for the ServiceType.
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 TServiceType) ( _
callback As SubscribeServiceCallback(Of TServiceType) _
)
'Usage
Dim instance As ServiceCollection
Dim callback As SubscribeServiceCallback(Of TServiceType)
instance.Unsubscribe(callback)
public void Unsubscribe<TServiceType>(
SubscribeServiceCallback<TServiceType> callback
)
public:
generic<typename TServiceType>
void Unsubscribe(
SubscribeServiceCallback<TServiceType>^ callback
)
member Unsubscribe :
callback:SubscribeServiceCallback<'TServiceType> -> unit
JScript does not support generic types and methods.
Type Parameters
- TServiceType
Parameters
- callback
Type: Microsoft.Data.Tools.Design.Core.Context..::..SubscribeServiceCallback< (Of < ( <'TServiceType> ) > ) >
The callback object to remove from the subscription.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If callback is null. |