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