IScalarFactory.CreateScalarExpression Method
Creates an IScalarExpression object that represents the evaluation of a scalar expression that has the specified data type.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function CreateScalarExpression ( _
dataType As IScalarDataType, _
nullable As Boolean _
) As IScalarExpression
'Usage
Dim instance As IScalarFactory
Dim dataType As IScalarDataType
Dim nullable As Boolean
Dim returnValue As IScalarExpression
returnValue = instance.CreateScalarExpression(dataType, _
nullable)
IScalarExpression CreateScalarExpression(
IScalarDataType dataType,
bool nullable
)
IScalarExpression^ CreateScalarExpression(
IScalarDataType^ dataType,
bool nullable
)
abstract CreateScalarExpression :
dataType:IScalarDataType *
nullable:bool -> IScalarExpression
function CreateScalarExpression(
dataType : IScalarDataType,
nullable : boolean
) : IScalarExpression
Parameters
- dataType
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarDataType
The scalar data type of the scalar to create.
- nullable
Type: System.Boolean
Specifies whether the scalar is nullable.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IScalarExpression
An IScalarExpression object that represents the evaluation of a scalar expression that has the specified data type.