ערוך

שתף באמצעות


ContextItemManager.Contains Method

Definition

Overloads

Contains(Type)

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

Contains<TItemType>()

Returns a value that indicates whether the item manager contains an item of the specified type.

Contains(Type)

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

public:
 abstract bool Contains(Type ^ itemType);
public abstract bool Contains (Type itemType);
abstract member Contains : Type -> bool
Public MustOverride Function Contains (itemType As Type) As Boolean

Parameters

itemType
Type

The type of item to check for.

Returns

true if the context contains an instance of the specified item type; otherwise, false.

Exceptions

itemType is null.

Applies to

Contains<TItemType>()

Returns a value that indicates whether the item manager contains an item of the specified type.

public:
generic <typename TItemType>
 where TItemType : System::Activities::Presentation::ContextItem bool Contains();
public bool Contains<TItemType> () where TItemType : System.Activities.Presentation.ContextItem;
member this.Contains : unit -> bool (requires 'ItemType :> System.Activities.Presentation.ContextItem)
Public Function Contains(Of TItemType As ContextItem) () As Boolean

Type Parameters

TItemType

The type of item to check for.

Returns

true if the context contains an instance of the specified item type; otherwise, false.

Remarks

This generic method invokes the abstract Contains method, which must be implemented for this method to provide the type checking functionality.

Applies to