ServerTraceEventSet.Add ServerTraceEventSet.Add ServerTraceEventSet.Add Method

Definition

Returns a trace event set after adding a trace event to an existing event set.

Overloads

Add(ServerTraceEvent) Add(ServerTraceEvent) Add(ServerTraceEvent)

Returns a trace event set after adding a trace event to an existing event set.

Add(ServerTraceEventSet, ServerTraceEvent) Add(ServerTraceEventSet, ServerTraceEvent) Add(ServerTraceEventSet, ServerTraceEvent)

Returns a trace event set after adding a trace event to an existing event set.

Examples

Handling SMO Events

Remarks

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

Add(ServerTraceEvent) Add(ServerTraceEvent) Add(ServerTraceEvent)

Returns a trace event set after adding a trace event to an existing event set.

public:
 Microsoft::SqlServer::Management::Smo::ServerTraceEventSet ^ Add(Microsoft::SqlServer::Management::Smo::ServerTraceEvent ^ anEvent);
public Microsoft.SqlServer.Management.Smo.ServerTraceEventSet Add (Microsoft.SqlServer.Management.Smo.ServerTraceEvent anEvent);
Public Function Add (anEvent As ServerTraceEvent) As ServerTraceEventSet
Parameters
anEvent
ServerTraceEvent ServerTraceEvent ServerTraceEvent

A ServerTraceEvent object that specifies the event.

Returns

Examples

Handling SMO Events

Remarks

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

Add(ServerTraceEventSet, ServerTraceEvent) Add(ServerTraceEventSet, ServerTraceEvent) Add(ServerTraceEventSet, ServerTraceEvent)

Returns a trace event set after adding a trace event to an existing event set.

public:
 static Microsoft::SqlServer::Management::Smo::ServerTraceEventSet ^ Add(Microsoft::SqlServer::Management::Smo::ServerTraceEventSet ^ eventSet, Microsoft::SqlServer::Management::Smo::ServerTraceEvent ^ anEvent);
public static Microsoft.SqlServer.Management.Smo.ServerTraceEventSet Add (Microsoft.SqlServer.Management.Smo.ServerTraceEventSet eventSet, Microsoft.SqlServer.Management.Smo.ServerTraceEvent anEvent);
Public Shared Function Add (eventSet As ServerTraceEventSet, anEvent As ServerTraceEvent) As ServerTraceEventSet
Parameters
eventSet
ServerTraceEventSet ServerTraceEventSet ServerTraceEventSet

A ServerTraceEventSet object that specifies the server trace event set.

anEvent
ServerTraceEvent ServerTraceEvent ServerTraceEvent

A ServerTraceEvent object that specifies the event.

Returns

Examples

Handling SMO Events

Remarks

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

Applies to