다음을 통해 공유


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.dll의 Microsoft.SqlServer.Smo

구문

‘선언
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 버전에서만 지원됩니다.