ViewEvents ViewEvents ViewEvents Class


ViewEvents 개체는 SQL Server 뷰 이벤트 알림에 필요한 설정을 나타냅니다. The ViewEvents object represents the settings that are required for SQL Server view event notification.

public ref class ViewEvents
public class ViewEvents
Public Class ViewEvents


SMO 이벤트 처리Handling SMO Events


ViewEvents 통해 액세스 하는 클래스 Events 속성 독립 실행형 개체로 만들 수 없습니다.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.


GetEventSelection() GetEventSelection() GetEventSelection()

현재 선택된 이벤트 알림을 반환합니다. Returns the currently selected event notifications.

StartEvents() StartEvents() StartEvents()

이벤트 받기를 시작합니다. Starts receiving events.

StopEvents() StopEvents() StopEvents()

이벤트 받기를 중지합니다. Stops receiving events.

SubscribeToEvents(ViewEventSet) SubscribeToEvents(ViewEventSet) SubscribeToEvents(ViewEventSet)

받을 뷰 이벤트를 지정합니다. Specifies the view events to receive.

SubscribeToEvents(ViewEventSet, ServerEventHandler) SubscribeToEvents(ViewEventSet, ServerEventHandler) SubscribeToEvents(ViewEventSet, ServerEventHandler)

받을 뷰 이벤트 및 해당 이벤트를 처리할 이벤트 처리기를 지정합니다. Specifies the view events to receive and the event handler that handles the events.

UnsubscribeAllEvents() UnsubscribeAllEvents() UnsubscribeAllEvents()

모든 이벤트 설정을 지우고 모든 이벤트 처리기를 제거합니다. Clears all event settings, and removes all event handlers.

UnsubscribeFromEvents(ViewEventSet) UnsubscribeFromEvents(ViewEventSet) UnsubscribeFromEvents(ViewEventSet)

지정한 이벤트 설정을 지우고 모든 이벤트 처리기를 제거합니다. Clears the specified event settings, and removes all event handlers.


ServerEvent ServerEvent ServerEvent

뷰 이벤트에 대한 서버 이벤트 처리기를 지정합니다. Specifies the server event handler for view events.

적용 대상