语言

ObjectNotFoundException 构造函数

定义

重载

名称 说明
ObjectNotFoundException()

初始化新实例 。ObjectNotFoundException

ObjectNotFoundException(String)

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

ObjectNotFoundException(String, Exception)

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

ObjectNotFoundException()

初始化新实例 。ObjectNotFoundException

public ObjectNotFoundException();
Public Sub New ()

适用于

ObjectNotFoundException(String)

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

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

参数

message
String

描述错误的消息。

适用于

ObjectNotFoundException(String, Exception)

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

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

参数

message
String

描述错误的消息。

innerException
Exception

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

适用于