ToolsetCollection.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.
Gets whether the collection contains the referenced Toolset.
Overloads
Contains(Toolset) |
Gets whether the collection contains a Toolset with the specified ToolsetCollection name. |
Contains(String) |
Gets whether the collection contains a Toolset with the specified tools version. |
Contains(Toolset)
Gets whether the collection contains a Toolset with the specified ToolsetCollection name.
public:
virtual bool Contains(Microsoft::Build::BuildEngine::Toolset ^ item);
public bool Contains (Microsoft.Build.BuildEngine.Toolset item);
abstract member Contains : Microsoft.Build.BuildEngine.Toolset -> bool
override this.Contains : Microsoft.Build.BuildEngine.Toolset -> bool
Public Function Contains (item As Toolset) As Boolean
Parameters
Returns
true
if the Toolset is contained in the collection; otherwise, false
. The default is false
.
Implements
Applies to
Contains(String)
Gets whether the collection contains a Toolset with the specified tools version.
public:
bool Contains(System::String ^ toolsVersion);
public bool Contains (string toolsVersion);
member this.Contains : string -> bool
Public Function Contains (toolsVersion As String) As Boolean
Parameters
- toolsVersion
- String
Required. A string value representing the tools version associated with the Toolset.
Returns
true
if the Toolset is contained in the collection; otherwise, false
. The default is false
.