OperationException 构造函数

定义

重载

OperationException()

初始化 OperationException 类的新实例。

OperationException(String)

初始化 OperationException 类的新实例。

OperationException(SerializationInfo, StreamingContext)
已过时.

从序列化窗体初始化 类的新实例 DbUpdateException

OperationException(String, Exception)

初始化 OperationException 类的新实例。

OperationException()

初始化 OperationException 类的新实例。

public OperationException ();
Public Sub New ()

适用于

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

导致当前异常的异常。

适用于