共用方式為


Add 方法 (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 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 版支援此命名空間、類別或成員。