UpdateException 构造函数 (String, Exception, IEnumerable<ObjectStateEntry>)

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

初始化带有错误消息、内部异常和状态条目的 UpdateException 类的新实例。

命名空间:  System.Data.Entity.Core
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Sub New ( _
    message As String, _
    innerException As Exception, _
    stateEntries As IEnumerable(Of ObjectStateEntry) _
)
用法
Dim message As String 
Dim innerException As Exception 
Dim stateEntries As IEnumerable(Of ObjectStateEntry)

Dim instance As New UpdateException(message, _
    innerException, stateEntries)
public UpdateException(
    string message,
    Exception innerException,
    IEnumerable<ObjectStateEntry> stateEntries
)
public:
UpdateException(
    String^ message, 
    Exception^ innerException, 
    IEnumerable<ObjectStateEntry^>^ stateEntries
)
new : 
        message:string * 
        innerException:Exception * 
        stateEntries:IEnumerable<ObjectStateEntry> -> UpdateException
public function UpdateException(
    message : String, 
    innerException : Exception, 
    stateEntries : IEnumerable<ObjectStateEntry>
)

参数

  • message
    类型:System.String
    描述此异常的错误消息。

请参阅

参考

UpdateException 类

UpdateException 重载

System.Data.Entity.Core 命名空间