Méthode UserDefinedFunctionEventSet.Add (UserDefinedFunctionEventSet, UserDefinedFunctionEvent)
Adds a user defined function event to an user defined function event set.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Shared Function Add ( _
eventSet As UserDefinedFunctionEventSet, _
anEvent As UserDefinedFunctionEvent _
) As UserDefinedFunctionEventSet
'Utilisation
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
Paramètres
- eventSet
Type : Microsoft.SqlServer.Management.Smo.UserDefinedFunctionEventSet
The user defined function event set.
- anEvent
Type : Microsoft.SqlServer.Management.Smo.UserDefinedFunctionEvent
The user defined function event.
Valeur de retour
Type : Microsoft.SqlServer.Management.Smo.UserDefinedFunctionEventSet
The user defined function event set with added event.