共用方式為


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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo. . :: . .DatabaseEventSet
A DatabaseEventSet object that contains the new DatabaseEvent object.