Share via


IColumnFactory.CreateAnonymousColumn Method

Creates an IColumn object that represents an anonymous column of the specified scalar.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Function CreateAnonymousColumn ( _
    dataType As IScalarDataType, _
    nullable As Boolean _
) As IColumn
'Usage
Dim instance As IColumnFactory
Dim dataType As IScalarDataType
Dim nullable As Boolean
Dim returnValue As IColumn

returnValue = instance.CreateAnonymousColumn(dataType, _
    nullable)
IColumn CreateAnonymousColumn(
    IScalarDataType dataType,
    bool nullable
)
IColumn^ CreateAnonymousColumn(
    IScalarDataType^ dataType, 
    bool nullable
)
abstract CreateAnonymousColumn : 
        dataType:IScalarDataType * 
        nullable:bool -> IColumn 
function CreateAnonymousColumn(
    dataType : IScalarDataType, 
    nullable : boolean
) : IColumn

Parameters

  • nullable
    Type: System.Boolean
    Specifies whether the column is nullable.

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IColumn
An IColumn object that represents an anonymous column of the specified scalar.