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