IColumnFactory.CreateColumnAlias Method (ITabular, IColumn, 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 CreateColumnAlias ( _
parent As ITabular, _
aliasedColumn As IColumn, _
alias As String _
) As IColumn
'Usage
Dim instance As IColumnFactory
Dim parent As ITabular
Dim aliasedColumn As IColumn
Dim alias As String
Dim returnValue As IColumn
returnValue = instance.CreateColumnAlias(parent, _
aliasedColumn, alias)
IColumn CreateColumnAlias(
ITabular parent,
IColumn aliasedColumn,
string alias
)
IColumn^ CreateColumnAlias(
ITabular^ parent,
IColumn^ aliasedColumn,
String^ alias
)
abstract CreateColumnAlias :
parent:ITabular *
aliasedColumn:IColumn *
alias:string -> IColumn
function CreateColumnAlias(
parent : ITabular,
aliasedColumn : IColumn,
alias : String
) : IColumn
Parameters
- parent
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.ITabular
The object that is the parent of the column.
- aliasedColumn
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IColumn
The 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.
See Also
Reference
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace