UpdateException 构造函数

定义

初始化 的新 UpdateException实例。

重载

名称 说明
UpdateException()

初始化 的新 UpdateException实例。

UpdateException(String)

使用专用错误消息初始化新实例 UpdateException

UpdateException(SerializationInfo, StreamingContext)

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

UpdateException(String, Exception)

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

UpdateException(String, Exception, IEnumerable<ObjectStateEntry>)

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

注解

有关如何在代码中处理异常的详细信息,请参阅 Exception

UpdateException()

初始化 的新 UpdateException实例。

public:
 UpdateException();
public UpdateException();
Public Sub New ()

注解

有关如何在代码中处理异常的详细信息,请参阅 Exception

适用于

UpdateException(String)

使用专用错误消息初始化新实例 UpdateException

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

参数

message
String

描述错误的消息。

注解

有关如何在代码中处理异常的详细信息,请参阅 Exception

适用于

UpdateException(SerializationInfo, StreamingContext)

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

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

参数

info
SerializationInfo

保存所引发异常的序列化对象数据的 SerializationInfo

context
StreamingContext

包含有关源或目标的上下文信息的 StreamingContext

注解

有关如何在代码中处理异常的详细信息,请参阅 Exception

适用于

UpdateException(String, Exception)

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

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

参数

message
String

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

innerException
Exception

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

注解

有关如何在代码中处理异常的详细信息,请参阅 Exception

适用于

UpdateException(String, Exception, IEnumerable<ObjectStateEntry>)

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

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

参数

message
String

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

innerException
Exception

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

stateEntries
IEnumerable<ObjectStateEntry>

对象的集合 ObjectStateEntry

注解

有关如何在代码中处理异常的详细信息,请参阅 Exception

适用于