GetValue(TItemType) Method

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:  Microsoft.Data.Tools.Design.Core.Context
Assembly:  Microsoft.Data.Tools.Design.Core (in Microsoft.Data.Tools.Design.Core.dll)

Syntax

'Declaration
Public Function GetValue(Of TItemType As ContextItem) As TItemType
'Usage
Dim instance As ContextItemCollection
Dim returnValue As TItemType

returnValue = instance.GetValue()
public TItemType GetValue<TItemType>()
where TItemType : ContextItem
public:
generic<typename TItemType>
where TItemType : ContextItem
TItemType GetValue()
member GetValue : unit -> 'TItemType  when 'TItemType : ContextItem
JScript does not support generic types and methods.

Type Parameters

  • TItemType

Return Value

Type: TItemType

See Also

Reference

ContextItemCollection Class

GetValue Overload

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