Description
VarDefSyntax objects are syntax elements that correspond to variable declaration statements. For example:
JavaScript, JScript
var MyVariable;
VBScript
Dim MyVariable
DelphiScript
var MyVariable;
C++Script, C#Script
var MyVariable;
Note for Python users: This object corresponds to the pass statement, because there is no variable declaration statement in Python.
You can create a VarDefSyntax object instance using the Syntax.CreateVarDef method.
The VarDefSyntax object has one property, Name, which specifies the name of the variable being declared.
Members
Example
For examples of using the VarDefSyntax object, see Generating Variable Declarations.
See Also
Syntax Object
Syntax.CreateVarDef Method
Script Extensions
Generating Variable Declarations

Properties