ManagementPackItemCollection<T>.Contains Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.