ProjectInstance.GetPropertyValue Method (String)


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)

public string GetPropertyValue(
	string 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.

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

Return to top