다음을 통해 공유


Add 메서드 (ObjectEvent)

Adds an ObjectEvent object to the ObjectEventSet object.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Function Add ( _
    anEvent As ObjectEvent _
) As ObjectEventSet
‘사용 방법
Dim instance As ObjectEventSet
Dim anEvent As ObjectEvent
Dim returnValue As ObjectEventSet

returnValue = instance.Add(anEvent)
public ObjectEventSet Add(
    ObjectEvent anEvent
)
public:
ObjectEventSet^ Add(
    ObjectEvent^ anEvent
)
member Add : 
        anEvent:ObjectEvent -> ObjectEventSet 
public function Add(
    anEvent : ObjectEvent
) : ObjectEventSet

매개 변수

반환 값

유형: Microsoft.SqlServer.Management.Smo. . :: . .ObjectEventSet
An ObjectEventSet object that contains the added ObjectEvent object.