Add 方法 (ServerEventSet, ServerEvent)

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Shared Function Add ( _
    eventSet As ServerEventSet, _
    anEvent As ServerEvent _
) As ServerEventSet
用法
Dim eventSet As ServerEventSet
Dim anEvent As ServerEvent
Dim returnValue As ServerEventSet

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

参数

返回值

类型:Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object value that contains the new ServerEvent object class.