ServerEvents 클래스

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

상속 계층

System.Object
  Microsoft.SqlServer.Management.Smo.ServerEvents

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public NotInheritable Class ServerEvents
‘사용 방법
Dim instance As ServerEvents
public sealed class ServerEvents
public ref class ServerEvents sealed
[<SealedAttribute>]
type ServerEvents =  class end
public final class ServerEvents

ServerEvents 유형에서 다음 멤버를 표시합니다.

메서드

  이름 설명
공용 메서드 Equals (Object에서 상속됨)
공용 메서드 GetEventSelection Returns the currently selected event notifications.
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetTraceEventSelection Returns the currently selected event notifications.
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 SetCredentials Sets the credentials required by the instance of Microsoft SQL Server.
공용 메서드 StartEvents Starts receiving events.
공용 메서드 StopEvents Stops receiving events.
공용 메서드 SubscribeToEvents(ServerEventSet) Specifies the server events to receive.
공용 메서드 SubscribeToEvents(ServerTraceEventSet) Specifies the server trace events to receive.
공용 메서드 SubscribeToEvents(ServerEventSet, ServerEventHandler) Specifies the server events to receive and the event handler that handles the events.
공용 메서드 SubscribeToEvents(ServerTraceEventSet, ServerEventHandler) Specifies the server trace events to receive and the event handler that handles the events.
공용 메서드 ToString (Object에서 상속됨)
공용 메서드 UnsubscribeAllEvents Clears all event settings, and removes all event handlers.
공용 메서드 UnsubscribeFromEvents(ServerEventSet) Clears the specified event settings, and removes all event handlers.
공용 메서드 UnsubscribeFromEvents(ServerTraceEventSet) Clears the specified event settings, and removes all event handlers.

맨 위로 이동

이벤트

  이름 설명
공용 이벤트 ServerEvent Specifies the event raised when an event occurs in Server object and the user has subscribed to the events from that object instance.

맨 위로 이동

주의

The ServerEvents class is accessed through Events property and cannot be created as a stand-alone object.

Thread Safety

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

SMO 이벤트 처리

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.Smo 네임스페이스