Gets or sets comment for global variable.
Syntax
Property Value
Type: System.String
The comment of global variable.
Example
The following example demonstrates using
Comment property.
| C# | Copy Code |
|---|
// get global variable
IGlobalVariable gv = project.GlobalVariables["MyNamespace", "MyGlobalVariable"];
// get comment for current global variable
string comment = gv.Comment;
// set comment for global variable
gv.Comment = "Set the comment for this global variable"; |
| PHP | Copy Code |
|---|
// get global variable
$gv = $project->GlobalVariables->get_Item("MyNamespace", "MyGlobalVariable");
// get comment for current global variable
$comment = $gv->Comment;
// set comment for global variable
$gv->Comment = "Set the comment for this global variable"; |
Requirements
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven
See Also