다음을 통해 공유


Add 메서드 (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 Function Add ( _
    anEvent As ServerTraceEvent _
) As ServerTraceEventSet
‘사용 방법
Dim instance As ServerTraceEventSet
Dim anEvent As ServerTraceEvent
Dim returnValue As ServerTraceEventSet

returnValue = instance.Add(anEvent)
public ServerTraceEventSet Add(
    ServerTraceEvent anEvent
)
public:
ServerTraceEventSet^ Add(
    ServerTraceEvent^ anEvent
)
member Add : 
        anEvent:ServerTraceEvent -> ServerTraceEventSet 
public function Add(
    anEvent : ServerTraceEvent
) : ServerTraceEventSet

매개 변수

반환 값

형식: Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet that represents the new event set.

주의

이 네임스페이스, 클래스 또는 멤버는 Microsoft .NET Framework 2.0 버전에서만 지원됩니다.