次の方法で共有


QueryableXEventData コンストラクター (String, String, EventStreamSourceOptions, EventStreamCacheOptions)

指定した接続文字列、セッション名、ソース オプション、およびキャッシュ オプションを使用して、QueryableXEventData クラスの新しいインスタンスを初期化します。

名前空間:  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 接続文字列です。

関連項目

参照

QueryableXEventData クラス

QueryableXEventData オーバーロード

Microsoft.SqlServer.XEvent.Linq 名前空間