DeclareVariableElement.VariableName Property

Gets or sets the name of the variable, including the @ at the beginning.

Namespace:  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntax

'Declaration
Public Property VariableName As Identifier 
    Get 
    Set
'Usage
Dim instance As DeclareVariableElement 
Dim value As Identifier 

value = instance.VariableName

instance.VariableName = value
public Identifier VariableName { get; set; }
public:
property Identifier^ VariableName {
    Identifier^ get ();
    void set (Identifier^ value);
}
member VariableName : Identifier with get, set
function get VariableName () : Identifier 
function set VariableName (value : Identifier)

Property Value

Type: Microsoft.SqlServer.TransactSql.ScriptDom.Identifier
The name of the variable.

See Also

Reference

DeclareVariableElement Class

Microsoft.SqlServer.TransactSql.ScriptDom Namespace