ContextItemManager.GetValue Method (Type)
When overridden in a derived class, 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 MustOverride Function GetValue ( _
itemType As Type _
) As ContextItem
public abstract ContextItem GetValue(
Type itemType
)
public:
virtual ContextItem^ GetValue(
Type^ itemType
) abstract
abstract GetValue :
itemType:Type -> ContextItem
public abstract function GetValue(
itemType : Type
) : ContextItem
Parameters
- itemType
Type: System.Type
The type of item to return.
Return Value
Type: Microsoft.Windows.Design.ContextItem
A context item of the requested type. If there is no item in the context of this type, a default one will be created.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | itemType is nulla null reference (Nothing in Visual Basic). |
.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>