Share via


IColumnFactory.CreateSimpleColumn Method (String, IScalarDataType, Boolean)

Note: This API is now obsolete.

Creates an IColumn object that has the specified column name and data type.

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

Syntax

'Declaration
<ObsoleteAttribute("This method is not longer supported.", True)> _
Function CreateSimpleColumn ( _
    name As String, _
    dataType As IScalarDataType, _
    nullable As Boolean _
) As IColumn
'Usage
Dim instance As IColumnFactory
Dim name As String
Dim dataType As IScalarDataType
Dim nullable As Boolean
Dim returnValue As IColumn

returnValue = instance.CreateSimpleColumn(name, _
    dataType, nullable)
[ObsoleteAttribute("This method is not longer supported.", true)]
IColumn CreateSimpleColumn(
    string name,
    IScalarDataType dataType,
    bool nullable
)
[ObsoleteAttribute(L"This method is not longer supported.", true)]
IColumn^ CreateSimpleColumn(
    String^ name, 
    IScalarDataType^ dataType, 
    bool nullable
)
[<ObsoleteAttribute("This method is not longer supported.", true)>]
abstract CreateSimpleColumn : 
        name:string * 
        dataType:IScalarDataType * 
        nullable:bool -> IColumn 
function CreateSimpleColumn(
    name : String, 
    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 has the specified column name and data type.