Export (0) Print
Expand All

ContextItemManager.Subscribe<TContextItemType> Method (SubscribeContextCallback<TContextItemType>)

Adds an event callback that is invoked when a context item of the specified item type changes.

Namespace:  System.Activities.Presentation
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public void Subscribe<TContextItemType>(
	SubscribeContextCallback<TContextItemType> callback
)
where TContextItemType : ContextItem

Type Parameters

TContextItemType

The type of item you want to subscribe to.

Parameters

callback
Type: System.Activities.Presentation.SubscribeContextCallback<TContextItemType>

A SubscribeContextCallback<TContextItemType> that is invoked when contextItemType changes.

ExceptionCondition
ArgumentNullException

contextItemType or callback is null.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft