OperationException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
OperationException() |
初始化 OperationException 類別的新執行個體。 |
OperationException(String) |
初始化 OperationException 類別的新執行個體。 |
OperationException(SerializationInfo, StreamingContext) |
已淘汰.
從序列化表單初始化 類別的新實例 DbUpdateException 。 |
OperationException(String, Exception) |
初始化 OperationException 類別的新執行個體。 |
OperationException()
OperationException(String)
初始化 OperationException 類別的新執行個體。
public OperationException (string message);
new Microsoft.EntityFrameworkCore.Design.OperationException : string -> Microsoft.EntityFrameworkCore.Design.OperationException
Public Sub New (message As String)
參數
- message
- String
描述錯誤的訊息。
適用於
OperationException(SerializationInfo, StreamingContext)
警告
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
從序列化表單初始化 類別的新實例 DbUpdateException 。
public OperationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
public OperationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.EntityFrameworkCore.Design.OperationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.Design.OperationException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")>]
new Microsoft.EntityFrameworkCore.Design.OperationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.Design.OperationException
Public Sub New (info As SerializationInfo, context As StreamingContext)
參數
- info
- SerializationInfo
序列化資訊。
- context
- StreamingContext
正在使用的串流內容。
- 屬性
適用於
OperationException(String, Exception)
初始化 OperationException 類別的新執行個體。
public OperationException (string message, Exception innerException);
public OperationException (string message, Exception? innerException);
new Microsoft.EntityFrameworkCore.Design.OperationException : string * Exception -> Microsoft.EntityFrameworkCore.Design.OperationException
Public Sub New (message As String, innerException As Exception)
參數
- message
- String
描述錯誤的訊息。
- innerException
- Exception
做為目前例外狀況發生原因的例外狀況。