共用方式為


UserDefinedAggregate.DataType 屬性

Gets or sets the data type returned by the user-defined aggregate.

此 API 不符合 CLS 標準。 

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

語法

'宣告
<CLSCompliantAttribute(False)> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
<SfcReferenceAttribute(GetType(UserDefinedDataType), GetType(UserDefinedDataTypeResolver),  _
    "Resolve", )> _
<SfcReferenceAttribute(GetType(UserDefinedType), GetType(UserDefinedTypeResolver),  _
    "Resolve", )> _
Public Property DataType As DataType 
    Get 
    Set
'用途
Dim instance As UserDefinedAggregate 
Dim value As DataType 

value = instance.DataType

instance.DataType = value
[CLSCompliantAttribute(false)]
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
[SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver), 
    "Resolve", )]
[SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver), 
    "Resolve", )]
public DataType DataType { get; set; }
[CLSCompliantAttribute(false)]
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
[SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver), 
    L"Resolve", )]
[SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver), 
    L"Resolve", )]
public:
property DataType^ DataType {
    DataType^ get ();
    void set (DataType^ value);
}
[<CLSCompliantAttribute(false)>]
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
[<SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver), 
    "Resolve", )>]
[<SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver), 
    "Resolve", )>]
member DataType : DataType with get, set
function get DataType () : DataType 
function set DataType (value : DataType)

屬性值

型別:Microsoft.SqlServer.Management.Smo.DataType
A DataType object value that specifies the data type returned by the user-defined aggregate.

範例

設定屬性

請參閱

參考

UserDefinedAggregate 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

彙總 Showplan 運算子

CREATE AGGREGATE (Transact-SQL)