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
propertyName
Type: System.StringThe name of the property.
subToolsetVersion
Type: System.StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.