SchemaEvents.SubscribeToEvents SchemaEvents.SubscribeToEvents SchemaEvents.SubscribeToEvents Method

정의

받을 개체 이벤트를 지정합니다. Specifies the object events to receive.

오버로드

SubscribeToEvents(ObjectEventSet) SubscribeToEvents(ObjectEventSet) SubscribeToEvents(ObjectEventSet)

받을 개체 이벤트를 지정합니다. Specifies the object events to receive.

SubscribeToEvents(ObjectEventSet, ServerEventHandler) SubscribeToEvents(ObjectEventSet, ServerEventHandler) SubscribeToEvents(ObjectEventSet, ServerEventHandler)

받을 개체 이벤트를 지정합니다. Specifies the object events to receive.

SubscribeToEvents(ObjectEventSet) SubscribeToEvents(ObjectEventSet) SubscribeToEvents(ObjectEventSet)

받을 개체 이벤트를 지정합니다. Specifies the object events to receive.

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

ObjectEventSet 받을 이벤트를 지정 하는 개체입니다. An ObjectEventSet object that specifies the events to receive.

예제

SMO 이벤트 처리Handling SMO Events

설명

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

SubscribeToEvents(ObjectEventSet, ServerEventHandler) SubscribeToEvents(ObjectEventSet, ServerEventHandler) SubscribeToEvents(ObjectEventSet, ServerEventHandler)

받을 개체 이벤트를 지정합니다. Specifies the object events to receive.

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

ObjectEventSet 받을 이벤트를 지정 하는 개체입니다. An ObjectEventSet object that specifies the events to receive.

eventHandler
ServerEventHandler ServerEventHandler ServerEventHandler

지정한 이벤트에 대한 이벤트 처리기를 지정하는 ServerEventHandler 개체입니다. A ServerEventHandler object that specifies the event handler for the specified events.

예제

SMO 이벤트 처리Handling SMO Events

설명

이벤트를 지정한 후이 메서드를 호출 하 여 이전에 선택 된 경우이 이벤트에 대 한 이벤트 처리기 설정을 덮어씁니다.In case events have been specified that have been selected in an earlier call to this method, this will override the event hander settings for those events.

적용 대상