语言

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

作为当前异常原因的异常,如果未指定内部异常,则为 null 引用 (Visual Basic) 中无任何内容。

适用于

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

作为当前异常原因的异常,如果未指定内部异常,则为 null 引用 (Visual Basic) 中无任何内容。

stateEntries
IEnumerable<ObjectStateEntry>

对象的集合 ObjectStateEntry 。

适用于