ServerTraceEvent.Add 方法
Returns a server trace event set by adding two server trace events.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Shared Function Add ( _
eventLeft As ServerTraceEvent, _
eventRight As ServerTraceEvent _
) As ServerTraceEventSet
用法
Dim eventLeft As ServerTraceEvent
Dim eventRight As ServerTraceEvent
Dim returnValue As ServerTraceEventSet
returnValue = ServerTraceEvent.Add(eventLeft, _
eventRight)
public static ServerTraceEventSet Add(
ServerTraceEvent eventLeft,
ServerTraceEvent eventRight
)
public:
static ServerTraceEventSet^ Add(
ServerTraceEvent^ eventLeft,
ServerTraceEvent^ eventRight
)
static member Add :
eventLeft:ServerTraceEvent *
eventRight:ServerTraceEvent -> ServerTraceEventSet
public static function Add(
eventLeft : ServerTraceEvent,
eventRight : ServerTraceEvent
) : ServerTraceEventSet
参数
- eventLeft
类型:Microsoft.SqlServer.Management.Smo.ServerTraceEvent
A ServerTraceEvent object that specifies the server trace events.
- eventRight
类型:Microsoft.SqlServer.Management.Smo.ServerTraceEvent
A ServerTraceEvent object that specifies the server trace events.
返回值
类型:Microsoft.SqlServer.Management.Smo.ServerTraceEventSet
A ServerTraceEventSet object value that specifies a set of two server trace events.
注释
仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间