共用方式為


Add 方法 (UserDefinedFunctionEventSet, UserDefinedFunctionEvent)

Adds a user defined function event to an user defined function event set.

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

語法

'宣告
Public Shared Function Add ( _
    eventSet As UserDefinedFunctionEventSet, _
    anEvent As UserDefinedFunctionEvent _
) As UserDefinedFunctionEventSet
'用途
Dim eventSet As UserDefinedFunctionEventSet
Dim anEvent As UserDefinedFunctionEvent
Dim returnValue As UserDefinedFunctionEventSet

returnValue = UserDefinedFunctionEventSet.Add(eventSet, _
    anEvent)
public static UserDefinedFunctionEventSet Add(
    UserDefinedFunctionEventSet eventSet,
    UserDefinedFunctionEvent anEvent
)
public:
static UserDefinedFunctionEventSet^ Add(
    UserDefinedFunctionEventSet^ eventSet, 
    UserDefinedFunctionEvent^ anEvent
)
static member Add : 
        eventSet:UserDefinedFunctionEventSet * 
        anEvent:UserDefinedFunctionEvent -> UserDefinedFunctionEventSet 
public static function Add(
    eventSet : UserDefinedFunctionEventSet, 
    anEvent : UserDefinedFunctionEvent
) : UserDefinedFunctionEventSet