共用方式為


IndexedColumn 建構函式 (Index, String, Boolean)

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

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

語法

'宣告
Public Sub New ( _
    index As Index, _
    name As String, _
    descending As Boolean _
)
'用途
Dim index As Index 
Dim name As String 
Dim descending As Boolean 

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

參數

  • descending
    型別:System.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.

範例

建立、改變和移除索引

請參閱

參考

IndexedColumn 類別

IndexedColumn 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

索引

CREATE INDEX (Transact-SQL)