ServerTraceEventSet.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
參數
- eventSet
型別:Microsoft.SqlServer.Management.Smo.ServerTraceEventSet
A ServerTraceEventSet object that specifies the server trace event set.
- anEvent
型別:Microsoft.SqlServer.Management.Smo.ServerTraceEvent
A ServerTraceEvent object that specifies the event.
傳回值
型別:Microsoft.SqlServer.Management.Smo.ServerTraceEventSet
A ServerTraceEventSet that represents the new event set.
備註
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間