Share via


QueryableXEventData 생성자 (String, String, EventStreamSourceOptions, EventStreamCacheOptions)

Initializes a new instance of the QueryableXEventData class with the specified connection string, session name, source option and cache option.

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

구문

‘선언
Public Sub New ( _
    connectionString As String, _
    source As String, _
    sourceOption As EventStreamSourceOptions, _
    cacheOption As EventStreamCacheOptions _
)
‘사용 방법
Dim connectionString As String 
Dim source As String 
Dim sourceOption As EventStreamSourceOptions 
Dim cacheOption As EventStreamCacheOptions 

Dim instance As New QueryableXEventData(connectionString, _
    source, sourceOption, cacheOption)
public QueryableXEventData(
    string connectionString,
    string source,
    EventStreamSourceOptions sourceOption,
    EventStreamCacheOptions cacheOption
)
public:
QueryableXEventData(
    String^ connectionString, 
    String^ source, 
    EventStreamSourceOptions sourceOption, 
    EventStreamCacheOptions cacheOption
)
new : 
        connectionString:string * 
        source:string * 
        sourceOption:EventStreamSourceOptions * 
        cacheOption:EventStreamCacheOptions -> QueryableXEventData
public function QueryableXEventData(
    connectionString : String, 
    source : String, 
    sourceOption : EventStreamSourceOptions, 
    cacheOption : EventStreamCacheOptions
)

매개 변수

  • connectionString
    유형: System.String
    SQL Server connection string that specifies the server to retrieve events from.

참고 항목

참조

QueryableXEventData 클래스

QueryableXEventData 오버로드

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