Share via


ProjectInstance.GetPropertyValue Method

Get the value of the property with the given name.

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.Execution
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Function GetPropertyValue ( _
    name As String _
) As String
public string GetPropertyValue(
    string name
)
public:
String^ GetPropertyValue(
    String^ name
)
member GetPropertyValue : 
        name:string -> string
public function GetPropertyValue(
    name : String
) : String

Parameters

  • name
    Type: System.String

    The name of the property whose value is to be retrieved.

Return Value

Type: System.String
Returns the value of the property with the given name. Returns an empty string if no property exists with that name. The value returned has no escaped character sequences.

Remarks

This method does not distinguish between a property with a value of empty string and no property with the given name.

.NET Framework Security

See Also

Reference

ProjectInstance Class

Microsoft.Build.Execution Namespace