SubscribeToEvents méthode (ServerTraceEventSet)
Specifies the server trace events to receive.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub SubscribeToEvents ( _
events As ServerTraceEventSet _
)
'Utilisation
Dim instance As ServerEvents
Dim events As ServerTraceEventSet
instance.SubscribeToEvents(events)
public void SubscribeToEvents(
ServerTraceEventSet events
)
public:
void SubscribeToEvents(
ServerTraceEventSet^ events
)
member SubscribeToEvents :
events:ServerTraceEventSet -> unit
public function SubscribeToEvents(
events : ServerTraceEventSet
)
Paramètres
- events
Type : Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet object that specifies the set of trace events to receive.