Jaa


IndexedColumn Constructor (Index, String, Boolean)

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

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

Syntax

'Declaration
Public Sub New ( _
    index As Index, _
    name As String, _
    descending As Boolean _
)
public IndexedColumn (
    Index index,
    string name,
    bool descending
)
public:
IndexedColumn (
    Index^ index, 
    String^ name, 
    bool descending
)
public IndexedColumn (
    Index index, 
    String name, 
    boolean descending
)
public function IndexedColumn (
    index : Index, 
    name : String, 
    descending : boolean
)

Parameters

  • index
    An Index object that specifies the index in which the indexed column is participating.
  • name
    A String value that specifies the name of the column.
  • descending
    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.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Example

How to: Create a Non-Clustered, Composite Index in Visual Basic .NET

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

IndexedColumn Class
IndexedColumn Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Creating, Altering, and Removing Indexes
Indexes
CREATE INDEX (Transact-SQL)