ContextItemManager.GetValue<TItemType> Method
Returns an instance of the requested item type.
Namespace: Microsoft.Windows.Design
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public Function GetValue(Of TItemType As ContextItem) As TItemType
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 or methods.
Type Parameters
- TItemType
Return Value
Type: TItemType
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<TContextItemType>