Share via


ContextItemManager.Contains Method (Type)

When overridden in a derived class, returns a value indicating whether the context item manager contains an item of the specified type.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public MustOverride Function Contains ( _
    itemType As Type _
) As Boolean
public abstract bool Contains(
    Type itemType
)
public:
virtual bool Contains(
    Type^ itemType
) abstract
abstract Contains : 
        itemType:Type -> bool 
public abstract function Contains(
    itemType : Type
) : boolean

Parameters

  • itemType
    Type: System.Type
    The type of item to check.

Return Value

Type: System.Boolean
true if the context contains an instance of this item type; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

itemType is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ContextItemManager Class

Contains Overload

Microsoft.Windows.Design Namespace

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Other Resources

Editing Context Architecture

Understanding WPF Designer Extensibility