ProjectCollection.GetGlobalProperty(String) 方法

定义

获取该项目集合的任何具有指定名称的全局属性。Gets any global property on the project collection that has the specified name.

public:
 Microsoft::Build::Execution::ProjectPropertyInstance ^ GetGlobalProperty(System::String ^ name);
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.

返回

该项目集合的任何具有指定名称的全局属性;否则返回 null。Any global property on the project collection that has the specified name; otherwise returns null.

适用于