共用方式為


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.