ServerTraceEventSet 构造函数 (array<ServerTraceEvent )
Initializes a new instance of the ServerTraceEventSet class with the specified set of events.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub New ( _
ParamArray events As ServerTraceEvent() _
)
用法
Dim events As ServerTraceEvent()
Dim instance As New ServerTraceEventSet(events)
public ServerTraceEventSet(
params ServerTraceEvent[] events
)
public:
ServerTraceEventSet(
... array<ServerTraceEvent^>^ events
)
new :
events:ServerTraceEvent[] -> ServerTraceEventSet
public function ServerTraceEventSet(
... events : ServerTraceEvent[]
)
参数
- events
类型:array<Microsoft.SqlServer.Management.Smo.ServerTraceEvent[]
An array of ServerTraceEvent objects that specifies several server trace events.
注释
仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间