IndexedColumn IndexedColumn IndexedColumn Constructors

Definition

Overloads

IndexedColumn() IndexedColumn() IndexedColumn()

Initializes a new instance of the IndexedColumn class.

IndexedColumn(Index, String) IndexedColumn(Index, String)

Initializes a new instance of the IndexedColumn class on the specified index and with the specified name.

IndexedColumn(Index, String, Boolean) IndexedColumn(Index, String, Boolean)

Initializes a new instance of the IndexedColumn class on the specified index and with the specified name and order.

IndexedColumn() IndexedColumn() IndexedColumn()

Initializes a new instance of the IndexedColumn class.

public:
 IndexedColumn();
public IndexedColumn ();
Public Sub New ()

Examples

Creating, Altering, and Removing Indexes

Remarks

The default constructor initializes any fields to their default values.

IndexedColumn(Index, String) IndexedColumn(Index, String)

Initializes a new instance of the IndexedColumn class on the specified index and with the specified name.

public:
 IndexedColumn(Microsoft::SqlServer::Management::Smo::Index ^ index, System::String ^ name);
public IndexedColumn (Microsoft.SqlServer.Management.Smo.Index index, string name);
Parameters
index
Index Index Index

An Index object that specifies the index in which the indexed column is participating.

name
String String String

A String value that specifies the name of the column.

Examples

Creating, Altering, and Removing Indexes

IndexedColumn(Index, String, Boolean) IndexedColumn(Index, String, Boolean)

Initializes a new instance of the IndexedColumn class on the specified index and with the specified name and order.

public:
 IndexedColumn(Microsoft::SqlServer::Management::Smo::Index ^ index, System::String ^ name, bool descending);
public IndexedColumn (Microsoft.SqlServer.Management.Smo.Index index, string name, bool descending);
Parameters
index
Index Index Index

An Index object that specifies the index in which the indexed column is participating.

name
String String String

A String value that specifies the name of the column.

descending
Boolean Boolean Boolean

A Boolean value that specifies whether the index is sorted in descending or ascending order.

If True, the index is sorted in descending order.

If False, the index is sorted in ascending order.

Examples

Creating, Altering, and Removing Indexes

See Also

Applies to