다음을 통해 공유


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.