ServerTraceEventSet Class

The ServerTraceEventSet object represents a set server trace events.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

public sealed class ServerTraceEventSet : EventSetBase
public final class ServerTraceEventSet extends EventSetBase
public final class ServerTraceEventSet extends EventSetBase

Updated text:

The ServerTraceEventSet object contains a property for each event to which the server trace responds. The events fall into categories, which are described in SQL Server Event Class Reference. The ServerTraceEventSet class is used to define a set of events that can be traced by SQL Server Profiler or the SMO Trace objects.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.


Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms



New content:
  • Added Add method overload to the ServerTraceEventSet class.

  • Added Subtract method to the ServerTraceEventSet class.

Content changed:
  • Descriptions of properties (events) have been updated.

Community Additions