IColumnFactory.CreateScalarAlias Method (IScalar, String)
Creates an IColumn object that is an alias of the specified IScalar object and has the specified column alias name.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function CreateScalarAlias ( _
aliasedScalar As IScalar, _
alias As String _
) As IColumn
'Usage
Dim instance As IColumnFactory
Dim aliasedScalar As IScalar
Dim alias As String
Dim returnValue As IColumn
returnValue = instance.CreateScalarAlias(aliasedScalar, _
alias)
IColumn CreateScalarAlias(
IScalar aliasedScalar,
string alias
)
IColumn^ CreateScalarAlias(
IScalar^ aliasedScalar,
String^ alias
)
abstract CreateScalarAlias :
aliasedScalar:IScalar *
alias:string -> IColumn
function CreateScalarAlias(
aliasedScalar : IScalar,
alias : String
) : IColumn
Parameters
- aliasedScalar
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IScalar
The IScalar object to be aliased.
- alias
Type: System.String
The column alias name to use.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IColumn
An IColumn object that is an alias.
See Also
Reference
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace