ServerTraceEventSet.Subtract 方法
Returns a trace event set after subtracting a trace event from an existing event set.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Shared Function Subtract ( _
eventSet As ServerTraceEventSet, _
anEvent As ServerTraceEvent _
) As ServerTraceEventSet
用法
Dim eventSet As ServerTraceEventSet
Dim anEvent As ServerTraceEvent
Dim returnValue As ServerTraceEventSet
returnValue = ServerTraceEventSet.Subtract(eventSet, _
anEvent)
public static ServerTraceEventSet Subtract(
ServerTraceEventSet eventSet,
ServerTraceEvent anEvent
)
public:
static ServerTraceEventSet^ Subtract(
ServerTraceEventSet^ eventSet,
ServerTraceEvent^ anEvent
)
static member Subtract :
eventSet:ServerTraceEventSet *
anEvent:ServerTraceEvent -> ServerTraceEventSet
public static function Subtract(
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 命名空间