This topic has not yet been rated - Rate this topic

Project.GetPropertyValue Method

Gets the value of the given property in this project.

Namespace:  Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)
public string GetPropertyValue(
	string name
)

Parameters

name
Type: System.String
The name of the property whose value is retrieved.

Return Value

Type: System.String
Returns the value of the given property in this project. Return an empty string if no property of that name exists. Escape sequences are converted before returning the string.

A property with a value of empty string and no property at all are not distinguished between by this method. To determine if a property is set at all in the project, use GetProperty(name).

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ