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)