ContextItemManager.GetValue Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

When overridden in a derived class, , 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.Design
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)

Syntax

'Declaration
Public MustOverride Function GetValue ( _
    itemType As Type _
) As ContextItem
'Usage
Dim instance As ContextItemManager
Dim itemType As Type
Dim returnValue As ContextItem

returnValue = instance.GetValue(itemType)
public abstract ContextItem GetValue(
    Type itemType
)
public:
virtual ContextItem^ GetValue(
    Type^ itemType
) abstract
public abstract function GetValue(
    itemType : Type
) : ContextItem
abstract GetValue : 
        itemType:Type -> ContextItem 

Parameters

  • itemType
    Type: System.Type
    The type of item to return.

Return Value

Type: System.Activities.Design.ContextItem
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.

Exceptions

Exception Condition
ArgumentNullException

itemType is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

ContextItemManager Class

ContextItemManager Members

System.Activities.Design Namespace