Udostępnij za pośrednictwem


ServerEvents Members

The ServerEvents object represents the settings required for SQL Server server-level event notification.

The following tables list the members exposed by the ServerEvents type.

Public Methods

(see also Protected Methods )

  Name Description
ms220182.pubmethod(pl-pl,SQL.100).gif Equals  Overloaded. (inherited from Object )
ms220182.pubmethod(pl-pl,SQL.100).gif GetEventSelection Returns the currently selected event notifications.
ms220182.pubmethod(pl-pl,SQL.100).gif GetHashCode  (inherited from Object )
ms220182.pubmethod(pl-pl,SQL.100).gif GetTraceEventSelection Returns the currently selected event notifications.
ms220182.pubmethod(pl-pl,SQL.100).gif GetType  (inherited from Object )
ms220182.pubmethod(pl-pl,SQL.100).gifms220182.static(pl-pl,SQL.100).gif ReferenceEquals  (inherited from Object )
ms220182.pubmethod(pl-pl,SQL.100).gif SetCredentials Sets the credentials required by the instance of Microsoft SQL Server.
ms220182.pubmethod(pl-pl,SQL.100).gif StartEvents Starts receiving events.
ms220182.pubmethod(pl-pl,SQL.100).gif StopEvents Stops receiving events.
ms220182.pubmethod(pl-pl,SQL.100).gif SubscribeToEvents Overloaded. Specifies the server events to receive.
ms220182.pubmethod(pl-pl,SQL.100).gif ToString  (inherited from Object )
ms220182.pubmethod(pl-pl,SQL.100).gif UnsubscribeAllEvents Clears all event settings, and removes all event handlers.
ms220182.pubmethod(pl-pl,SQL.100).gif UnsubscribeFromEvents Overloaded. Clears the specified event settings, and removes all event handlers.

Top

Protected Methods

  Name Description
ms220182.protmethod(pl-pl,SQL.100).gif Finalize  (inherited from Object )
ms220182.protmethod(pl-pl,SQL.100).gif MemberwiseClone  (inherited from Object )

Top

Public Events

  Name Description
ms220182.pubevent(pl-pl,SQL.100).gif ServerEvent Specifies the event raised when an event occurs in Server object and the user has subscribed to the events from that object instance.

Top