ServerEvents.SubscribeToEvents ServerEvents.SubscribeToEvents ServerEvents.SubscribeToEvents Method

정의

받을 서버 이벤트를 지정합니다. Specifies the server events to receive.

오버로드

SubscribeToEvents(ServerEventSet) SubscribeToEvents(ServerEventSet) SubscribeToEvents(ServerEventSet)

받을 서버 이벤트를 지정합니다. Specifies the server events to receive.

SubscribeToEvents(ServerTraceEventSet) SubscribeToEvents(ServerTraceEventSet) SubscribeToEvents(ServerTraceEventSet)

받을 서버 추적 이벤트를 지정합니다. Specifies the server trace events to receive.

SubscribeToEvents(ServerEventSet, ServerEventHandler) SubscribeToEvents(ServerEventSet, ServerEventHandler) SubscribeToEvents(ServerEventSet, ServerEventHandler)

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

SubscribeToEvents(ServerTraceEventSet, ServerEventHandler) SubscribeToEvents(ServerTraceEventSet, ServerEventHandler) SubscribeToEvents(ServerTraceEventSet, ServerEventHandler)

받을 서버 추적 이벤트 및 해당 이벤트를 처리할 이벤트 처리기를 지정합니다. Specifies the server trace events to receive and the event handler that handles the events.

SubscribeToEvents(ServerEventSet) SubscribeToEvents(ServerEventSet) SubscribeToEvents(ServerEventSet)

받을 서버 이벤트를 지정합니다. Specifies the server events to receive.

public:
 void SubscribeToEvents(Microsoft::SqlServer::Management::Smo::ServerEventSet ^ events);
public void SubscribeToEvents (Microsoft.SqlServer.Management.Smo.ServerEventSet events);
Public Sub SubscribeToEvents (events As ServerEventSet)
매개 변수
events
ServerEventSet ServerEventSet ServerEventSet

A ServerEventSet 를 받을 이벤트 집합을 지정 하는 개체입니다. A ServerEventSet object that specifies the set of events to receive.

예제

SMO 이벤트 처리Handling SMO Events

설명

이벤트에 등록 된 이벤트 처리기로 전송 됩니다는 OnEvent 문.Events are sent to the event handlers that are registered with the OnEvent statement.

SubscribeToEvents(ServerTraceEventSet) SubscribeToEvents(ServerTraceEventSet) SubscribeToEvents(ServerTraceEventSet)

받을 서버 추적 이벤트를 지정합니다. Specifies the server trace events to receive.

public:
 void SubscribeToEvents(Microsoft::SqlServer::Management::Smo::ServerTraceEventSet ^ events);
public void SubscribeToEvents (Microsoft.SqlServer.Management.Smo.ServerTraceEventSet events);
Public Sub SubscribeToEvents (events As ServerTraceEventSet)
매개 변수
events
ServerTraceEventSet ServerTraceEventSet ServerTraceEventSet

받을 추적 이벤트 집합을 지정하는 ServerTraceEventSet 개체입니다. A ServerTraceEventSet object that specifies the set of trace events to receive.

예제

SMO 이벤트 처리Handling SMO Events

설명

이벤트에 등록 된 이벤트 처리기에 전송 되는 ServerEvent 이벤트입니다.Events are sent to the event handlers that are registered with the ServerEvent event.

SubscribeToEvents(ServerEventSet, ServerEventHandler) SubscribeToEvents(ServerEventSet, ServerEventHandler) SubscribeToEvents(ServerEventSet, ServerEventHandler)

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

public:
 void SubscribeToEvents(Microsoft::SqlServer::Management::Smo::ServerEventSet ^ events, Microsoft::SqlServer::Management::Smo::ServerEventHandler ^ eventHandler);
public void SubscribeToEvents (Microsoft.SqlServer.Management.Smo.ServerEventSet events, Microsoft.SqlServer.Management.Smo.ServerEventHandler eventHandler);
Public Sub SubscribeToEvents (events As ServerEventSet, eventHandler As ServerEventHandler)
매개 변수
events
ServerEventSet ServerEventSet ServerEventSet

A ServerEventSet 를 받을 이벤트 집합을 지정 하는 개체입니다. A ServerEventSet object that specifies the set of events to receive.

eventHandler
ServerEventHandler ServerEventHandler ServerEventHandler

A ServerEventHandler 수신 되는 이벤트를 처리 하는 개체입니다. A ServerEventHandler object that handles the events that are received.

예제

SMO 이벤트 처리Handling SMO Events

SubscribeToEvents(ServerTraceEventSet, ServerEventHandler) SubscribeToEvents(ServerTraceEventSet, ServerEventHandler) SubscribeToEvents(ServerTraceEventSet, ServerEventHandler)

받을 서버 추적 이벤트 및 해당 이벤트를 처리할 이벤트 처리기를 지정합니다. Specifies the server trace events to receive and the event handler that handles the events.

public:
 void SubscribeToEvents(Microsoft::SqlServer::Management::Smo::ServerTraceEventSet ^ events, Microsoft::SqlServer::Management::Smo::ServerEventHandler ^ eventHandler);
public void SubscribeToEvents (Microsoft.SqlServer.Management.Smo.ServerTraceEventSet events, Microsoft.SqlServer.Management.Smo.ServerEventHandler eventHandler);
Public Sub SubscribeToEvents (events As ServerTraceEventSet, eventHandler As ServerEventHandler)
매개 변수
events
ServerTraceEventSet ServerTraceEventSet ServerTraceEventSet

A ServerTraceEventSet 를 받을 이벤트 집합을 지정 하는 개체입니다. A ServerTraceEventSet object that specifies the set of events to receive.

eventHandler
ServerEventHandler ServerEventHandler ServerEventHandler

A ServerEventHandler 수신 되는 이벤트를 처리 하는 개체입니다. A ServerEventHandler object that handles the events that are received.

예제

SMO 이벤트 처리Handling SMO Events

적용 대상