ServerTraceEventSet.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
参数
- 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 命名空间