Partager via


Constructeur 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.

Espace de noms :  Microsoft.SqlServer.XEvent.Linq
Assembly :  Microsoft.SqlServer.XEvent.Linq (en Microsoft.SqlServer.XEvent.Linq.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    connectionString As String, _
    source As String, _
    sourceOption As EventStreamSourceOptions, _
    cacheOption As EventStreamCacheOptions _
)
'Utilisation
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
)

Paramètres

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

Voir aussi

Référence

QueryableXEventData Classe

Surcharge QueryableXEventData

Espace de noms Microsoft.SqlServer.XEvent.Linq