ContextItemManager.GetValue<ItemType> Method
Returns an instance of the requested item type.
Namespace: Microsoft.Windows.Design
Assembly: Microsoft.Windows.Design (in Microsoft.Windows.Design.dll)
Syntax
'Declaration
Public Function GetValue(Of ItemType As ContextItem) As ItemType
'Usage
Dim instance As ContextItemManager
Dim returnValue As ItemType
returnValue = instance.GetValue()
public ItemType GetValue<ItemType>()
where ItemType : ContextItem
public:
generic<typename ItemType>
where ItemType : ContextItem
ItemType GetValue()
JScript does not support generic types or methods.
Type Parameters
- ItemType
The type of item to return.
Return Value
Type: ItemType
A context item of the requested type. If there is no item in the context of this type, a default one will be created.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design Namespace
SubscribeContextCallback<ContextItemType>