Partilhar via


PackageCollection.Contains Method

Definition

Overloads

Contains(String)

Determines whether the collection contains Package.

Contains(Guid, String)

Determines whether the collection contains Package.

Contains(String)

Determines whether the collection contains Package.

public bool Contains (string name);
override this.Contains : string -> bool
Public Function Contains (name As String) As Boolean

Parameters

name
String

just the package name, without the module id

Returns

true if the collection contains Package; otherwise, false.

Applies to

Contains(Guid, String)

Determines whether the collection contains Package.

public bool Contains (Guid moduleID, string name);
override this.Contains : Guid * string -> bool
Public Function Contains (moduleID As Guid, name As String) As Boolean

Parameters

moduleID
Guid

module id of the package

name
String

name of the package

Returns

true if the collection contains Package; otherwise, false.

Applies to