[DataMember()] string Comment {get; set;}
Property Value
Type: System.StringThe comment of global variable.
[DataMember()] string Comment {get; set;}
The comment of global variable.
// 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";
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.