ToolsetCollection.Contains Method

Definition

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

item
Toolset

Required. A string value representing the name of the Toolset.

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.

Applies to