ProjectCollection.GetGlobalProperty(String) Method

Definition

Get any global property on the project collection that has the specified name, otherwise returns null.

C#
public Microsoft.Build.Execution.ProjectPropertyInstance GetGlobalProperty(string name);

Parameters

name
String

The name of the property to be retrieved.

Returns

Any global property on the project collection that has the specified name; otherwise returns null.

Applies to

產品 版本
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17