Partilhar via


Index Constructor (SqlSmoObject, String)

Initializes a new instance of the Index class on the specified parent object and with the specified name.

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

Syntax

'Declaration
Public Sub New ( _
    parent As SqlSmoObject, _
    name As String _
)
public Index (
    SqlSmoObject parent,
    string name
)
public:
Index (
    SqlSmoObject^ parent, 
    String^ name
)
public Index (
    SqlSmoObject parent, 
    String name
)
public function Index (
    parent : SqlSmoObject, 
    name : String
)

Parameters

  • name
    A String that specifies the name of the index.

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

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

Other Resources

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