UserDefinedAggregateParameter Constructor (UserDefinedAggregate, String, DataType)

Initializes a new instance of the UserDefinedAggregateParameter class on the specified user-defined aggregate, with the specified name and with the specified data type.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub New ( _
    userDefinedAggregate As UserDefinedAggregate, _
    name As String, _
    dataType As DataType _
)
'Usage
Dim userDefinedAggregate As UserDefinedAggregate 
Dim name As String 
Dim dataType As DataType 

Dim instance As New UserDefinedAggregateParameter(userDefinedAggregate, _
    name, dataType)
public UserDefinedAggregateParameter(
    UserDefinedAggregate userDefinedAggregate,
    string name,
    DataType dataType
)
public:
UserDefinedAggregateParameter(
    UserDefinedAggregate^ userDefinedAggregate, 
    String^ name, 
    DataType^ dataType
)
new : 
        userDefinedAggregate:UserDefinedAggregate * 
        name:string * 
        dataType:DataType -> UserDefinedAggregateParameter
public function UserDefinedAggregateParameter(
    userDefinedAggregate : UserDefinedAggregate, 
    name : String, 
    dataType : DataType
)

Parameters

  • name
    Type: System.String
    A String value that specifies the name of the user-defined aggregate parameter.

Examples

Create User-defined Aggregates

See Also

Reference

UserDefinedAggregateParameter Class

UserDefinedAggregateParameter Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

CREATE AGGREGATE (Transact-SQL)