OrderColumnCollection.Add OrderColumnCollection.Add Method

Definition

Adds a new object to the collection.

Overloads

Add(OrderColumn) Add(OrderColumn)

Adds a OrderColumn to the collection.

Add(OrderColumn, Int32) Add(OrderColumn, Int32)

Adds a OrderColumn to the collection before the column object with the specified index position.

Add(OrderColumn, String) Add(OrderColumn, String)

Inserts a new object into the collection, before the column with the specified name.

Add(OrderColumn) Add(OrderColumn)

Adds a OrderColumn to the collection.

public:
 void Add(Microsoft::SqlServer::Management::Smo::OrderColumn ^ orderColumn);
public void Add (Microsoft.SqlServer.Management.Smo.OrderColumn orderColumn);
Parameters
orderColumn
OrderColumn OrderColumn

The column to add to the collection.

Add(OrderColumn, Int32) Add(OrderColumn, Int32)

Adds a OrderColumn to the collection before the column object with the specified index position.

public:
 void Add(Microsoft::SqlServer::Management::Smo::OrderColumn ^ orderColumn, int insertAtPosition);
public void Add (Microsoft.SqlServer.Management.Smo.OrderColumn orderColumn, int insertAtPosition);
Parameters
orderColumn
OrderColumn OrderColumn

The column to add to the collection.

insertAtPosition
Int32 Int32

The position at which to insert the column.

Add(OrderColumn, String) Add(OrderColumn, String)

Inserts a new object into the collection, before the column with the specified name.

public:
 void Add(Microsoft::SqlServer::Management::Smo::OrderColumn ^ orderColumn, System::String ^ insertAtColumnName);
public void Add (Microsoft.SqlServer.Management.Smo.OrderColumn orderColumn, string insertAtColumnName);
Parameters
orderColumn
OrderColumn OrderColumn

The column to add to the collection.

insertAtColumnName
String String

The position at which to insert the column.

Applies to