Variable Property
Gets or sets the specified variable.
Syntax
Property Variable(varName) As VSVariable |
Parameters
varName
Type: String
The name of the variable
Examples
IronPython
#Get a variable #Set a variable var = VSVariable(varName, VSVariableDataType.String, varName + " (set by IronPython script)", varName + " (set by IronPython script)", False, VSVariableDefinitionType.VSDynamic) |
C#
//Get a variable VSVariable var = (VSVariable) ScriptData.get_Variable(varName); //Set a variable VSVariable var = new VSVariable(varName, VSVariableDataType.String, varName + " (set by C# script)", varName + " (set by C# script)", false, VSVariableDefinitionType.VSDynamic); ScriptData.set_Variable(varName, var); |