Share via


IndexedColumn Constructor (Index, String)

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

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 _
)
'Usage
Dim index As Index 
Dim name As String 

Dim instance As New IndexedColumn(index, name)
public IndexedColumn(
    Index index,
    string name
)
public:
IndexedColumn(
    Index^ index, 
    String^ name
)
new : 
        index:Index * 
        name:string -> IndexedColumn
public function IndexedColumn(
    index : Index, 
    name : String
)

Parameters

Examples

Creating, Altering, and Removing Indexes

See Also

Reference

IndexedColumn Class

IndexedColumn Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Indexes

CREATE INDEX (Transact-SQL)