共用方式為


Add 方法

Returns a server event set after adding a new server event to the event set.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Shared Function Add ( _
    eventLeft As ServerEvent, _
    eventRight As ServerEvent _
) As ServerEventSet
'用途
Dim eventLeft As ServerEvent
Dim eventRight As ServerEvent
Dim returnValue As ServerEventSet

returnValue = ServerEvent.Add(eventLeft, _
    eventRight)
public static ServerEventSet Add(
    ServerEvent eventLeft,
    ServerEvent eventRight
)
public:
static ServerEventSet^ Add(
    ServerEvent^ eventLeft, 
    ServerEvent^ eventRight
)
static member Add : 
        eventLeft:ServerEvent * 
        eventRight:ServerEvent -> ServerEventSet 
public static function Add(
    eventLeft : ServerEvent, 
    eventRight : ServerEvent
) : ServerEventSet

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object value that specifies a set of server events.