| C# | |
|---|---|
string ToString() | |
Return Value
Type: System.StringA string that represents the current local variable.
The following example converts an ILocalVariable object using the default ToString method.
| C# | Copy Code |
|---|---|
// get local variable ILocalVariable lv = project.Variables["VariableName"]; // convert local variable to string string stringLocalVariable = lv.ToString(); | |
| PHP | Copy Code |
|---|---|
// get local variable $lv = $project->Variables->get_Item("VariableName"); // convert local variable to string $stringLocalVariable = $lv->ToString(); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven