UserDefinedFunction.Columns 属性

Represents a collection of Column objects. Each Column object represents a column defined on the user-defined function.

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

语法

声明
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(Column), SfcObjectFlags.None Or SfcObjectFlags.NaturalOrder Or SfcObjectFlags.Design)> _
Public ReadOnly Property Columns As ColumnCollection 
    Get
用法
Dim instance As UserDefinedFunction 
Dim value As ColumnCollection 

value = instance.Columns
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Column), SfcObjectFlags.None|SfcObjectFlags.NaturalOrder|SfcObjectFlags.Design)]
public ColumnCollection Columns { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(Column), SfcObjectFlags::None|SfcObjectFlags::NaturalOrder|SfcObjectFlags::Design)]
public:
property ColumnCollection^ Columns {
    ColumnCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Column), SfcObjectFlags.None|SfcObjectFlags.NaturalOrder|SfcObjectFlags.Design)>]
member Columns : ColumnCollection
function get Columns () : ColumnCollection

属性值

类型:Microsoft.SqlServer.Management.Smo.ColumnCollection
A ColumnCollection object that represents all the columns defined on the user-defined function.

注释

The Columns property applies to a table valued function. This collection cannot be modified for inline table-valued functions.

示例

设置属性

请参阅

参考

UserDefinedFunction 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

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

CREATE FUNCTION (Transact-SQL)