ContextItemManager.Subscribe Method (Type, SubscribeContextCallback)

.NET Framework (current version)
 

When overridden in a derived class, 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 abstract void Subscribe(
	Type contextItemType,
	SubscribeContextCallback callback
)

Parameters

contextItemType
Type: System.Type

The type of item you want to subscribe to.

callback
Type: System.Activities.Presentation.SubscribeContextCallback

The SubscribeContextCallback that is invoked when contextItemType changes.

Exception Condition
ArgumentNullException

contextItemType or callback is null.

.NET Framework
Available since 4.0
Return to top
Show: