Share via


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)

Syntax

'Declaration
Public NotInheritable Class ServerTraceEventSet
    Inherits EventSetBase
public sealed class ServerTraceEventSet : EventSetBase
public ref class ServerTraceEventSet sealed : public EventSetBase
public final class ServerTraceEventSet extends EventSetBase
public final class ServerTraceEventSet extends EventSetBase

Remarks

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.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Management.Smo.EventSetBase
    Microsoft.SqlServer.Management.Smo.ServerTraceEventSet

Example

How to: Register Event Handlers and Subscribe to Event Handling in Visual Basic .NET

Thread Safety

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.

Platforms

Development Platforms

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

Target Platforms

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

See Also

Reference

ServerTraceEventSet Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Tracing and Replaying Events
Handling SMO Events
Monitoring Events
SQL Server Event Class Reference
sp_trace_setevent (Transact-SQL)

Change History

Release

History

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.