IVariableFactory.CreateScalarVariable Method
Creates an IScalarVariable object that has the specified name and data type.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function CreateScalarVariable ( _
name As String, _
dataType As IScalarDataType _
) As IScalarVariable
'Usage
Dim instance As IVariableFactory
Dim name As String
Dim dataType As IScalarDataType
Dim returnValue As IScalarVariable
returnValue = instance.CreateScalarVariable(name, _
dataType)
IScalarVariable CreateScalarVariable(
string name,
IScalarDataType dataType
)
IScalarVariable^ CreateScalarVariable(
String^ name,
IScalarDataType^ dataType
)
abstract CreateScalarVariable :
name:string *
dataType:IScalarDataType -> IScalarVariable
function CreateScalarVariable(
name : String,
dataType : IScalarDataType
) : IScalarVariable
Parameters
- name
Type: System.String
The name of the variable to create.
- dataType
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarDataType
The data type of the variable to create.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarVariable
An IScalarVariable object.