共用方式為


Index 建構函式 (SqlSmoObject, String)

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub New ( _
    parent As SqlSmoObject, _
    name As String _
)
'用途
Dim parent As SqlSmoObject 
Dim name As String 

Dim instance As New Index(parent, _
    name)
public Index(
    SqlSmoObject parent,
    string name
)
public:
Index(
    SqlSmoObject^ parent, 
    String^ name
)
new : 
        parent:SqlSmoObject * 
        name:string -> Index
public function Index(
    parent : SqlSmoObject, 
    name : String
)

參數

範例

建立、改變和移除索引

請參閱

參考

Index 類別

Index 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

索引

CREATE INDEX (Transact-SQL)