共用方式為


CosmosReadItemEventData 建構函式

定義

建構事件承載。

public CosmosReadItemEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, string resourceId, string containerId, string? partitionKey, bool logSensitiveData);
new Microsoft.EntityFrameworkCore.Diagnostics.CosmosReadItemEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * string * string * string * bool -> Microsoft.EntityFrameworkCore.Diagnostics.CosmosReadItemEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), resourceId As String, containerId As String, partitionKey As String, logSensitiveData As Boolean)

參數

eventDefinition
EventDefinitionBase

事件定義。

messageGenerator
Func<EventDefinitionBase,EventData,String>

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

resourceId
String

正在讀取之資源的識別碼。

containerId
String

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

partitionKey
String

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

logSensitiveData
Boolean

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

適用於