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
- parent
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.ITabular
The object that is the parent of the column.
- aliasedScalar
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IScalar
The object to be aliased.
- alias
Type: System.String
The column alias name.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IColumn
An IColumn object.
See Also
Reference
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace