CoreStrings.WarningAsErrorTemplate(Object, Object, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
針對警告 '{eventName}': {message} 會產生錯誤:此例外可以透過將事件 ID '{eventId}' 傳給 'DbContext.OnConfiguring' 或 'AddDbContext' 中的 'ConfigureWarnings' 方法來抑制或記錄。
public static string WarningAsErrorTemplate(object? eventName, object? message, object? eventId);
public static string WarningAsErrorTemplate(object eventName, object message, object eventId);
static member WarningAsErrorTemplate : obj * obj * obj -> string
Public Shared Function WarningAsErrorTemplate (eventName As Object, message As Object, eventId As Object) As String
參數
- eventName
- Object
- message
- Object
- eventId
- Object