Session 클래스

Represents a row in sys.server_event_sessions and includes data from sys.dm_xe_sessions if running.

상속 계층

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
    Microsoft.SqlServer.Management.XEvent.Session

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

구문

‘선언
Public NotInheritable Class Session _
    Inherits SfcInstance _
    Implements ISfcCreatable, ICreatable, ISfcAlterable, IAlterable,  _
    ISfcDroppable, IDroppable, ISfcValidate, ISfcDiscoverObject
‘사용 방법
Dim instance As Session
public sealed class Session : SfcInstance, 
    ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, ISfcDroppable, 
    IDroppable, ISfcValidate, ISfcDiscoverObject
public ref class Session sealed : public SfcInstance, 
    ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, ISfcDroppable, 
    IDroppable, ISfcValidate, ISfcDiscoverObject
[<SealedAttribute>]
type Session =  
    class 
        inherit SfcInstance 
        interface ISfcCreatable 
        interface ICreatable 
        interface ISfcAlterable 
        interface IAlterable 
        interface ISfcDroppable 
        interface IDroppable 
        interface ISfcValidate 
        interface ISfcDiscoverObject 
    end
public final class Session extends SfcInstance implements ISfcCreatable, ICreatable, ISfcAlterable, IAlterable, ISfcDroppable, IDroppable, ISfcValidate, ISfcDiscoverObject

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

생성자

  이름 설명
공용 메서드 Session() Initializes a new instance of Session class.
공용 메서드 Session(XEStore, String) Initializes a new instance of Session class.

맨 위로 이동

속성

  이름 설명
보호된 속성 AbstractIdentityKey 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 속성 AutoStart Gets or sets a value indicating whether the AutoStart object is active or not.
공용 속성 EventRetentionMode Gets or sets the EventRetentionMode object.
공용 속성 Events Gets the EventCollection of the session.
공용 속성 ID Gets the ID object.
공용 속성 IdentityKey Gets the identity key of the session.
공용 속성 IsRunning Gets a value indicating whether this session is running.
공용 속성 MaxDispatchLatency Gets or sets the maximum dispatch latency in seconds.
공용 속성 MaxEventSize Gets or sets the size in KB of the maximum event for the session.
공용 속성 MaxMemory Gets or sets the maximum memory in KB of the session.
공용 속성 MemoryPartitionMode Gets or sets the memory partition mode from an enumeration with options for perNode, perCpu, or none.
공용 속성 Metadata Returns metadata about the instance and its domain. (SfcInstance에서 상속됨)
공용 속성 Name Gets the name of the Session object.
공용 속성 Parent Gets or sets the parent XEStore object.
공용 속성 Properties Returns a collection instance properties. (SfcInstance에서 상속됨)
공용 속성 StartTime Gets the start time.
공용 속성 State Gets the state of the object used in Alter function in session.
공용 속성 Targets Gets the TargetCollection.
공용 속성 TrackCausality Gets or sets a Boolean value indicating whether the TrackCausality object is activated.
공용 속성 Urn Returns the uniform resource name of the SfcInstance object. (SfcInstance에서 상속됨)

맨 위로 이동

메서드

  이름 설명
공용 메서드 AddEvent(String) Adds a new Event object to the session from fully qualified event name.
공용 메서드 AddEvent(EventInfo) Adds a new Event object to the session.
공용 메서드 AddTarget(String) Adds a new Target object to the session.
공용 메서드 AddTarget(TargetInfo) Adds a new Target object to the session.
공용 메서드 Alter Alters the Session object on the server.
공용 메서드 Create Creates the Session object on the server.
보호된 메서드 CreateIdentityKey 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 Discover 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 Drop Drops the Session object on the server.
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 GetChildCollection 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 GetDomain 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드정적 멤버 GetObjectFactory Gets the SQL Foundation Class object factory.
공용 메서드 GetPropertySet Returns the set of properties for the SfcInstance object. (SfcInstance에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
보호된 메서드 GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 InitializeUIPropertyState 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
보호된 메서드 OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (SfcInstance에서 상속됨)
보호된 메서드 OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (SfcInstance에서 상속됨)
공용 메서드 Refresh Refreshes the object's properties by reading them from the server. (SfcInstance에서 상속됨)
공용 메서드 RemoveEvent Removes the specified Event object from the session.
공용 메서드 RemoveTarget Removes the Target object from the session.
보호된 메서드 ResetKey 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SfcInstance에서 상속됨)
공용 메서드 ScriptAlter Gets the alteration ISfcScript for the session.
공용 메서드 ScriptCreate Gets the creation ISfcScript for the session.
공용 메서드 ScriptDrop Gets the drop ISfcScript for the session.
공용 메서드 Serialize Serializes the instance to XML. (SfcInstance에서 상속됨)
공용 메서드 Start Starts the Session object.
공용 메서드 Stop Stops the Session object.
공용 메서드 ToString Returns a string representation of the instance Urn. (SfcInstance에서 상속됨)
공용 메서드 Validate(String) Validates the specified method name.
공용 메서드 Validate(String, array<Object[]) Validates the method specified by the name parameter.

맨 위로 이동

이벤트

  이름 설명
공용 이벤트 PropertyChanged CLS-compliant event for property changes. (SfcInstance에서 상속됨)
공용 이벤트 PropertyMetadataChanged CLS-compliant event for property metadata changes. (SfcInstance에서 상속됨)

맨 위로 이동

필드

  이름 설명
공용 필드정적 멤버 DefaultDispatchLatency Default dispatch latency is 30 seconds.
공용 필드정적 멤버 DefaultMaxMemory The maximum amount of memory by default is 4 MB.
공용 필드정적 멤버 InfiniteDispatchLatency 0 indicates that dispatch latency is infinite.
공용 필드정적 멤버 NotStarted Session is currently not running.

맨 위로 이동

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현전용 메서드 ISfcDiscoverObject.Discover Discovers or alters dependency actions and events in the Session object.

맨 위로 이동

주의

The Session object is the main object that user code interacts with.

스레드 보안

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

참고 항목

참조

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