Share via


ManagementPackItemCollection<T>.Contains Method

Definition

Checks whether the collection contains the specified item.

Overloads

Contains(Guid)

Checks whether the collection contains the specified item.

Contains(T)

Checks whether the collection contains the specified item.

Contains(Guid)

Checks whether the collection contains the specified item.

public:
 virtual bool Contains(Guid id);
public virtual bool Contains (Guid id);
abstract member Contains : Guid -> bool
override this.Contains : Guid -> bool
Public Overridable Function Contains (id As Guid) As Boolean

Parameters

id
Guid

The identifier of the item to search the collection for.

Returns

true if the specified item was found in the collection; otherwise, false.

Applies to

Contains(T)

Checks whether the collection contains the specified item.

public:
 virtual bool Contains(T item);
public virtual bool Contains (T item);
abstract member Contains : 'T -> bool
override this.Contains : 'T -> bool
Public Overridable Function Contains (item As T) As Boolean

Parameters

item
T

The item to search the collection for.

Returns

true if the specified item was found in the collection; otherwise, false.

Applies to