共用方式為


CosmosQueryEventData 建構函式

定義

建構事件承載。

public CosmosQueryEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, string containerId, string? partitionKey, System.Collections.Generic.IReadOnlyList<(string Name, object? Value)> parameters, string querySql, bool logSensitiveData);
new Microsoft.EntityFrameworkCore.Diagnostics.CosmosQueryEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * string * string * System.Collections.Generic.IReadOnlyList<ValueTuple<string, obj>> * string * bool -> Microsoft.EntityFrameworkCore.Diagnostics.CosmosQueryEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), containerId As String, partitionKey As String, parameters As IReadOnlyList(Of ValueTuple(Of String, Object)), querySql As String, logSensitiveData As Boolean)

參數

eventDefinition
EventDefinitionBase

事件定義。

messageGenerator
Func<EventDefinitionBase,EventData,String>

產生此事件記錄訊息的委派。

containerId
String

正在查詢之 Cosmos 容器的識別碼。

partitionKey
String

查詢所使用的 Cosmos 分割區索引鍵。

parameters
IReadOnlyList<ValueTuple<String,Object>>

Cosmos Query 中每個參數的名稱/值。

querySql
String

代表查詢的 SQL。

logSensitiveData
Boolean

指出應用程式是否允許記錄敏感性資料。

適用於