次の方法で共有


Toolset.GetProperty(String, String) Method

Definition

Given a property name and a sub-toolset version, searches for that property first in the sub-toolset, then falls back to the base toolset if necessary, and returns the property if it was found.

public:
 Microsoft::Build::Execution::ProjectPropertyInstance ^ GetProperty(System::String ^ propertyName, System::String ^ subToolsetVersion);
public Microsoft.Build.Execution.ProjectPropertyInstance GetProperty (string propertyName, string subToolsetVersion);
member this.GetProperty : string * string -> Microsoft.Build.Execution.ProjectPropertyInstance
Public Function GetProperty (propertyName As String, subToolsetVersion As String) As ProjectPropertyInstance

Parameters

propertyName
String

The name of the property.

subToolsetVersion
String

The sub toolset version of the sub toolset. May be null.

Returns

The property specified, or null if not found.

Remarks

If the property is not found in the sub toolset, searches for the property in the base toolset.

If the property is not found in the sub toolset or the base toolset, returns null.

Applies to