Share via


IColumnFactory.CreateScalarAlias Method (ITabular, IScalar, String)

Creates an IColumn object that is an alias of the specified 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 ( _
    parent As ITabular, _
    aliasedScalar As IScalar, _
    alias As String _
) As IColumn
'Usage
Dim instance As IColumnFactory 
Dim parent As ITabular 
Dim aliasedScalar As IScalar 
Dim alias As String 
Dim returnValue As IColumn 

returnValue = instance.CreateScalarAlias(parent, _
    aliasedScalar, alias)
IColumn CreateScalarAlias(
    ITabular parent,
    IScalar aliasedScalar,
    string alias
)
IColumn^ CreateScalarAlias(
    ITabular^ parent, 
    IScalar^ aliasedScalar, 
    String^ alias
)
abstract CreateScalarAlias : 
        parent:ITabular * 
        aliasedScalar:IScalar * 
        alias:string -> IColumn
function CreateScalarAlias(
    parent : ITabular, 
    aliasedScalar : IScalar, 
    alias : String
) : IColumn

Parameters

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IColumn
An IColumn object.

See Also

Reference

IColumnFactory Interface

CreateScalarAlias Overload

Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace