UpdateException 构造函数

定义

重载

UpdateException()

初始化 UpdateException 的新实例。

UpdateException(String)

使用指定的错误消息初始化 UpdateException 的新实例。

UpdateException(SerializationInfo, StreamingContext)

使用序列化数据初始化 UpdateException 的新实例。

UpdateException(String, Exception)

初始化 UpdateException 类的新实例,该类使用指定的错误消息和对作为此异常原因的内部异常的引用。

UpdateException(String, Exception, IEnumerable<ObjectStateEntry>)

初始化 UpdateException 类的新实例,该类使用指定的错误消息、对内部异常的引用,以及 ObjectStateEntry 对象的可枚举集合。

UpdateException()

初始化 UpdateException 的新实例。

public UpdateException ();
Public Sub New ()

适用于

UpdateException(String)

使用指定的错误消息初始化 UpdateException 的新实例。

public UpdateException (string message);
new System.Data.Entity.Core.UpdateException : string -> System.Data.Entity.Core.UpdateException
Public Sub New (message As String)

参数

message
String

描述错误的消息。

适用于

UpdateException(SerializationInfo, StreamingContext)

使用序列化数据初始化 UpdateException 的新实例。

protected UpdateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.Entity.Core.UpdateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.Entity.Core.UpdateException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

包含有关所引发异常的序列化对象数据的 SerializationInfo

context
StreamingContext

StreamingContext,它包含关于源或目标的上下文信息。

适用于

UpdateException(String, Exception)

初始化 UpdateException 类的新实例,该类使用指定的错误消息和对作为此异常原因的内部异常的引用。

public UpdateException (string message, Exception innerException);
new System.Data.Entity.Core.UpdateException : string * Exception -> System.Data.Entity.Core.UpdateException
Public Sub New (message As String, innerException As Exception)

参数

message
String

解释异常原因的错误消息。

innerException
Exception

导致当前异常的异常;如果未指定任何内部异常,则为空引用(在 Visual Basic 中为 Nothing)。

适用于

UpdateException(String, Exception, IEnumerable<ObjectStateEntry>)

初始化 UpdateException 类的新实例,该类使用指定的错误消息、对内部异常的引用,以及 ObjectStateEntry 对象的可枚举集合。

public UpdateException (string message, Exception innerException, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Objects.ObjectStateEntry> stateEntries);
new System.Data.Entity.Core.UpdateException : string * Exception * seq<System.Data.Entity.Core.Objects.ObjectStateEntry> -> System.Data.Entity.Core.UpdateException
Public Sub New (message As String, innerException As Exception, stateEntries As IEnumerable(Of ObjectStateEntry))

参数

message
String

解释异常原因的错误消息。

innerException
Exception

导致当前异常的异常;如果未指定任何内部异常,则为空引用(在 Visual Basic 中为 Nothing)。

stateEntries
IEnumerable<ObjectStateEntry>

ObjectStateEntry 对象的集合。

适用于