ContextItemManager.GetValue<TItemType> Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns an instance of the requested item type. If there is no context item with the given type, an empty item will be created.

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

public TItemType GetValue<TItemType>()
where TItemType : ContextItem

Return Value

Type: TItemType

Returns ContextItem, which contains a context item of the requested type. If there is no item in the context for this type, a default one is created.

Type Parameters


The type of item to return.

This generic method invokes the abstract GetValue method, which must be implemented for this method to provide the get type functionality.

.NET Framework
Available since 4.0
Return to top