共用方式為


Index.IndexedColumns 屬性

Gets a collection of IndexedColumn objects that represent all the columns participating in the index.

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

語法

'宣告
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.OneToAny, GetType(IndexedColumn),  _
    SfcObjectFlags.None Or SfcObjectFlags.NaturalOrder Or SfcObjectFlags.Design Or SfcObjectFlags.Deploy)> _
Public ReadOnly Property IndexedColumns As IndexedColumnCollection 
    Get
'用途
Dim instance As Index 
Dim value As IndexedColumnCollection 

value = instance.IndexedColumns
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.OneToAny, typeof(IndexedColumn), 
    SfcObjectFlags.None|SfcObjectFlags.NaturalOrder|SfcObjectFlags.Design|SfcObjectFlags.Deploy)]
public IndexedColumnCollection IndexedColumns { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::OneToAny, 
    typeof(IndexedColumn), SfcObjectFlags::None|SfcObjectFlags::NaturalOrder|SfcObjectFlags::Design|SfcObjectFlags::Deploy)]
public:
property IndexedColumnCollection^ IndexedColumns {
    IndexedColumnCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.OneToAny, 
    typeof(IndexedColumn), SfcObjectFlags.None|SfcObjectFlags.NaturalOrder|SfcObjectFlags.Design|SfcObjectFlags.Deploy)>]
member IndexedColumns : IndexedColumnCollection
function get IndexedColumns () : IndexedColumnCollection

屬性值

型別:Microsoft.SqlServer.Management.Smo.IndexedColumnCollection
An IndexedColumnCollection object that represents all the columns participating in the index.

範例

建立、改變和移除索引

請參閱

參考

Index 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

索引

CREATE INDEX (Transact-SQL)