UserDefinedFunction.Indexes 属性

Represents a collection of Index objects. Each Index object represents an index defined on the user-defined function.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(Index), SfcObjectFlags.Design)> _
Public ReadOnly Property Indexes As IndexCollection 
    Get
用法
Dim instance As UserDefinedFunction 
Dim value As IndexCollection 

value = instance.Indexes
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Index), SfcObjectFlags.Design)]
public IndexCollection Indexes { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(Index), SfcObjectFlags::Design)]
public:
property IndexCollection^ Indexes {
    IndexCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Index), SfcObjectFlags.Design)>]
member Indexes : IndexCollection
function get Indexes () : IndexCollection

属性值

类型:Microsoft.SqlServer.Management.Smo.IndexCollection
An IndexCollection object that represents all the indexes defined on the user-defined function.

注释

The Index property is used to define table constraints.

示例

设置属性

请参阅

参考

UserDefinedFunction 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

用户定义函数(数据库引擎)

CREATE FUNCTION (Transact-SQL)