Метод Add (DatabaseEvent)
Returns a set of database events after adding a new database event to the referenced event set.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Function Add ( _
anEvent As DatabaseEvent _
) As DatabaseEventSet
'Применение
Dim instance As DatabaseEventSet
Dim anEvent As DatabaseEvent
Dim returnValue As DatabaseEventSet
returnValue = instance.Add(anEvent)
public DatabaseEventSet Add(
DatabaseEvent anEvent
)
public:
DatabaseEventSet^ Add(
DatabaseEvent^ anEvent
)
member Add :
anEvent:DatabaseEvent -> DatabaseEventSet
public function Add(
anEvent : DatabaseEvent
) : DatabaseEventSet
Параметры
- anEvent
Тип: Microsoft.SqlServer.Management.Smo. . :: . .DatabaseEvent
A DatabaseEvent object that specifies the database event added to the database event set.
Возвращаемое значение
Тип: Microsoft.SqlServer.Management.Smo. . :: . .DatabaseEventSet
A DatabaseEventSet object that contains the new DatabaseEvent object.
См. также