Метод Add (ObjectEventSet, ObjectEvent)
Adds a ObjectEvent object to a ObjectEventSet.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Shared Function Add ( _
eventSet As ObjectEventSet, _
anEvent As ObjectEvent _
) As ObjectEventSet
'Применение
Dim eventSet As ObjectEventSet
Dim anEvent As ObjectEvent
Dim returnValue As ObjectEventSet
returnValue = ObjectEventSet.Add(eventSet, _
anEvent)
public static ObjectEventSet Add(
ObjectEventSet eventSet,
ObjectEvent anEvent
)
public:
static ObjectEventSet^ Add(
ObjectEventSet^ eventSet,
ObjectEvent^ anEvent
)
static member Add :
eventSet:ObjectEventSet *
anEvent:ObjectEvent -> ObjectEventSet
public static function Add(
eventSet : ObjectEventSet,
anEvent : ObjectEvent
) : ObjectEventSet
Параметры
- eventSet
Тип: Microsoft.SqlServer.Management.Smo. . :: . .ObjectEventSet
ObjectEventSet that will have the Object Event added.
- anEvent
Тип: Microsoft.SqlServer.Management.Smo. . :: . .ObjectEvent
ObjectEvent to be added..
Возвращаемое значение
Тип: Microsoft.SqlServer.Management.Smo. . :: . .ObjectEventSet
ObjectEventSet
См. также