Compartilhar via


Toolset.GetProperty Method

Gets property specified by the given property name and sub toolset version.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Function GetProperty ( _
    propertyName As String, _
    subToolsetVersion As String _
) As ProjectPropertyInstance
public ProjectPropertyInstance GetProperty(
    string propertyName,
    string subToolsetVersion
)
public:
ProjectPropertyInstance^ GetProperty(
    String^ propertyName, 
    String^ subToolsetVersion
)
member GetProperty : 
        propertyName:string * 
        subToolsetVersion:string -> ProjectPropertyInstance
public function GetProperty(
    propertyName : String, 
    subToolsetVersion : String
) : ProjectPropertyInstance

Parameters

  • subToolsetVersion
    Type: System.String

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

Return Value

Type: Microsoft.Build.Execution.ProjectPropertyInstance
Returns the property specified, if it is found, otherwise returns null.

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.

.NET Framework Security

See Also

Reference

Toolset Class

Microsoft.Build.Evaluation Namespace