ProjectCollection.GetGlobalProperty(String) Method
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.
Get any global property on the project collection that has the specified name, otherwise returns null.
public:
Microsoft::Build::Execution::ProjectPropertyInstance ^ GetGlobalProperty(System::String ^ name);
C#
public Microsoft.Build.Execution.ProjectPropertyInstance GetGlobalProperty(string name);
member this.GetGlobalProperty : string -> Microsoft.Build.Execution.ProjectPropertyInstance
Public Function GetGlobalProperty (name As String) As ProjectPropertyInstance
- name
- String
The name of the property to be retrieved.
Any global property on the project collection that has the specified name; otherwise returns null.
產品 | 版本 |
---|---|
MSBuild | 15, 16, 17 |
MSBuild (.NET Core) | 15, 16, 17 |