Subscribe Method (Type, SubscribeContextCallback)

Adds an event callback that will be invoked with a context item of the given item type changes.

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

instance.Subscribe(contextItemType, callback)
public abstract void Subscribe(
    Type contextItemType,
    SubscribeContextCallback callback
)
public:
virtual void Subscribe(
    Type^ contextItemType, 
    SubscribeContextCallback^ callback
) abstract
abstract Subscribe : 
        contextItemType:Type * 
        callback:SubscribeContextCallback -> unit 
public abstract function Subscribe(
    contextItemType : Type, 
    callback : SubscribeContextCallback
)

Parameters

  • contextItemType
    Type: System..::..Type
    The type of item you wish to subscribe to.

Exceptions

Exception Condition
ArgumentNullException

if contextItemType or callback is null.

See Also

Reference

ContextItemCollection Class

Subscribe Overload

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