Share via


ColumnCollection.Add Method (Column, Int32)

Adds a Column object to the ColumnCollection collection at a specified position.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub Add ( _
    column As Column, _
    insertAtPosition As Integer _
)
'Usage
Dim instance As ColumnCollection
Dim column As Column
Dim insertAtPosition As Integer

instance.Add(column, insertAtPosition)
public void Add(
    Column column,
    int insertAtPosition
)
public:
void Add(
    Column^ column, 
    int insertAtPosition
)
member Add : 
        column:Column * 
        insertAtPosition:int -> unit 
public function Add(
    column : Column, 
    insertAtPosition : int
)

Parameters

  • insertAtPosition
    Type: System.Int32
    An Int32 value that specifies the index position in the collection at which to insert the Column object.