ServerEventArgs 클래스

정의

개체는 ServerEventArgs SQL Server 인스턴스에서 발생하는 모든 유형의 이벤트를 보고하는 데 사용되는 인수에 프로그래밍 방식으로 액세스할 수 있도록 합니다.

public ref class ServerEventArgs sealed : EventArgs
public sealed class ServerEventArgs : EventArgs
type ServerEventArgs = class
    inherit EventArgs
Public NotInheritable Class ServerEventArgs
Inherits EventArgs
상속
ServerEventArgs

예제

SMO 이벤트 처리

설명

스레드 보안

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

속성

EventType

이벤트의 형식을 가져옵니다.

PostTime

인수가 게시된 날짜 및 시간을 가져옵니다.

Properties

EventProperty 개체의 컬렉션을 나타냅니다. 각 EventProperty 개체는 서버 이벤트의 속성을 나타냅니다.

Spid

이벤트의 SPID(서버 프로세스 식별자)를 가져옵니다.

SqlInstance

이벤트가 발생한 SQL Server 인스턴스를 가져옵니다.

적용 대상