Partilhar via


CosmosQueryEventData Construtor

Definição

Constrói o conteúdo do evento.

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)

Parâmetros

eventDefinition
EventDefinitionBase

A definição do evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Um delegado que gera uma mensagem de log para esse evento.

containerId
String

A ID do contêiner do Cosmos que está sendo consultado.

partitionKey
String

A chave da partição do Cosmos que a consulta está usando.

parameters
IReadOnlyList<ValueTuple<String,Object>>

Nome/valores para cada parâmetro na Consulta Cosmos.

querySql
String

O SQL que representa a consulta.

logSensitiveData
Boolean

Indica se o aplicativo permite o registro em log de dados confidenciais.

Aplica-se a