Partager via


ToolsetCollection Class

Definition

This class (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Implementation of ICollection<Toolset> that also supports key-based retrieval by passing the string value of the tools version corresponding with the desired Toolset. NOTE: This collection does not support ICollection<Toolset>'s Remove or Clear methods, and calls to these will generate exceptions.

public ref class ToolsetCollection : System::Collections::Generic::ICollection<Microsoft::Build::BuildEngine::Toolset ^>, System::Collections::Generic::IEnumerable<Microsoft::Build::BuildEngine::Toolset ^>
public class ToolsetCollection : System.Collections.Generic.ICollection<Microsoft.Build.BuildEngine.Toolset>, System.Collections.Generic.IEnumerable<Microsoft.Build.BuildEngine.Toolset>
type ToolsetCollection = class
    interface ICollection<Toolset>
    interface seq<Toolset>
    interface IEnumerable
Public Class ToolsetCollection
Implements ICollection(Of Toolset), IEnumerable(Of Toolset)
Inheritance
ToolsetCollection
Implements

Remarks

Warning

This class (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Properties

Count

Count of elements in this collection.

IsReadOnly

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Always returns false

Item[String]

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Gets the Toolset with matching toolsVersion.

ToolsVersions

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution The names of the toolsets stored in this collection.

Methods

Add(Toolset)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Adds the given Toolset to this collection, replacing any previous value with the same tools version. Also notifies the parent Engine of the change.

Clear()

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This method is not supported.

Contains(String)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Determines whether the collection contains a Toolset with matching tools version.

Contains(Toolset)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Determines whether or not this collection contains the given toolset.

CopyTo(Toolset[], Int32)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Copies the contents of this collection to the given array, beginning at the given index.

GetEnumerator()

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Generic enumerator for the Toolsets in this collection.

Remove(Toolset)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution This method is not supported.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Non-generic enumerator for the Toolsets in this collection.

Applies to