ToolsetCollection Class
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.
Represents one or more Toolset objects. A Toolset is a combination of a Toolset version (such as "2.0"), a tools path, and an optional set of associated properties.
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
ToolsetCollection allows you to retrieve individual Toolset objects by passing the string value of the tools version corresponding with the desired Toolset.
Properties
Count |
Gets a value indicating the number of Toolset objects in the ToolsetCollection. |
IsReadOnly |
Gets whether the ToolsetCollection is read-only. IsReadOnly always returns |
Item[String] |
Gets the Toolset associated with the specified tools version. |
ToolsVersions |
Gets the names of the Toolsets stored in this collection. |
Methods
Add(Toolset) |
Adds the specified Toolset to this collection. |
Clear() |
This method is not supported. |
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. |
CopyTo(Toolset[], Int32) |
Copies the contents of the ToolsetCollection to a compatible one-dimensional Array, starting at the specified index of the target array. |
GetEnumerator() |
Gets an enumerator that iterates through the ToolsetCollection. |
Remove(Toolset) |
This method is not supported. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
Non-generic enumerator for the Toolsets in this collection. |