Share via


Unsubscribe Method (Type, SubscribeContextCallback)

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 MustOverride Sub Unsubscribe ( _
    contextItemType As Type, _
    callback As SubscribeContextCallback _
)
'Usage
Dim instance As ContextItemCollection
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
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.

Exceptions

Exception Condition
ArgumentNullException

if contextItemType or callback is null.

See Also

Reference

ContextItemCollection Class

Unsubscribe Overload

Microsoft.Data.Tools.Design.Core.Context Namespace