ViewEvents Class
The ViewEvents object represents the settings that are required for SQL Server view event notification.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.Smo.ViewEvents
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Bildirim
Public Class ViewEvents
'Kullanım
Dim instance As ViewEvents
public class ViewEvents
public ref class ViewEvents
type ViewEvents = class end
public class ViewEvents
The ViewEvents type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEventSelection | Returns the currently selected event notifications. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
StartEvents | Starts receiving events. | |
StopEvents | Stops receiving events. | |
SubscribeToEvents(ViewEventSet) | Specifies the view events to receive. | |
SubscribeToEvents(ViewEventSet, ServerEventHandler) | Specifies the view events to receive and the event handler that handles the events. | |
ToString | (Inherited from Object.) | |
UnsubscribeAllEvents | Clears all event settings, and removes all event handlers. | |
UnsubscribeFromEvents | Clears the specified event settings, and removes all event handlers. |
Top
Events
Name | Description | |
---|---|---|
ServerEvent | Specifies the server event handler for view events. |
Top
Remarks
The ViewEvents class is accessed through Events property and cannot be created as a stand-alone object.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Examples
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.