ObjectNotFoundException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ObjectNotFoundException() |
初始化 ObjectNotFoundException 的新实例。 |
ObjectNotFoundException(String) |
使用指定的错误消息初始化 ObjectNotFoundException 的新实例。 |
ObjectNotFoundException(String, Exception) |
初始化 ObjectNotFoundException 类的新实例,该类使用指定的错误消息和对内部异常的引用。 |
ObjectNotFoundException()
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
导致当前异常的异常;如果未指定任何内部异常,则为空引用(在 Visual Basic 中为 Nothing)。