Share via


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

See Also

Reference

ContextItemManager Class

GetValue Overload

Microsoft.Windows.Design Namespace

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Other Resources

Editing Context Architecture

Understanding WPF Designer Extensibility