Add 方法 (ServerTraceEventSet, ServerTraceEvent)

Returns a trace event set after adding a trace event to an existing event set.

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

语法

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

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

参数

返回值

类型:Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet that represents the new event set.

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。