ToolsetCollection.Add(Toolset) 方法

定义

将指定的 Toolset 添加到此集合。Adds the specified Toolset to this collection.

public:
 virtual void Add(Microsoft::Build::BuildEngine::Toolset ^ item);
public void Add (Microsoft.Build.BuildEngine.Toolset item);
abstract member Add : Microsoft.Build.BuildEngine.Toolset -> unit
override this.Add : Microsoft.Build.BuildEngine.Toolset -> unit
Public Sub Add (item As Toolset)

参数

item
Toolset

一个 Toolset 对象,表示要添加到集合的工具集。A Toolset object representing the Toolset to add to the collection.

实现

注解

Add替换任何具有相同工具版本的以前的值。Add replaces any previous value that has the same tools version. 它还通知父项Engine的更改。It also notifies the parent Engine of the change.

适用于