ZennoLab Assemblies Documentation
Comment Property (IGlobalVariable)
Example 
Gets or sets comment for global variable.
Syntax
string Comment {get; set;}

Property Value

Type: System.String

The comment of global variable.

Example
The following example demonstrates using Comment property.
// 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";
// 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

Reference

IGlobalVariable Interface
IGlobalVariable Members
IGlobalVariables Interface
ILocalVariable Interface

Send Feedback