DeclareVariableElement.DataType Property

Gets or sets the data type of the variable. The TABLE type is invalid.

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

Syntax

'Declaration
Public Property DataType As DataTypeReference 
    Get 
    Set
'Usage
Dim instance As DeclareVariableElement 
Dim value As DataTypeReference 

value = instance.DataType

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

Property Value

Type: Microsoft.SqlServer.TransactSql.ScriptDom.DataTypeReference
The data type of the variable.

See Also

Reference

DeclareVariableElement Class

Microsoft.SqlServer.TransactSql.ScriptDom Namespace