Sdílet prostřednictvím


Project.GetPropertyValue(String) Method

Definition

Get the unescaped value of a property in this project, or an empty string if it does not exist.

public:
 System::String ^ GetPropertyValue(System::String ^ name);
public string GetPropertyValue (string name);
member this.GetPropertyValue : string -> string
Public Function GetPropertyValue (name As String) As String

Parameters

name
String

The name of the property whose value is retrieved.

Returns

The value of the given property in this project, or an empty string if no property of that name exists. Escape sequences are converted before returning the string.

Remarks

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

Applies to