PackageCollection.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.
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
.