ObjectNotFoundException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ObjectNotFoundException() |
Initializes a new instance of ObjectNotFoundException. |
ObjectNotFoundException(String) |
Initializes a new instance of ObjectNotFoundException with a specialized error message. |
ObjectNotFoundException(String, Exception) |
Initializes a new instance of ObjectNotFoundException class that uses a specified error message and a reference to the inner exception. |
ObjectNotFoundException()
Initializes a new instance of ObjectNotFoundException.
public ObjectNotFoundException ();
Public Sub New ()
Applies to
ObjectNotFoundException(String)
Initializes a new instance of ObjectNotFoundException with a specialized error message.
public ObjectNotFoundException (string message);
new System.Data.Entity.Core.ObjectNotFoundException : string -> System.Data.Entity.Core.ObjectNotFoundException
Public Sub New (message As String)
Parameters
- message
- String
The message that describes the error.
Applies to
ObjectNotFoundException(String, Exception)
Initializes a new instance of ObjectNotFoundException class that uses a specified error message and a reference to the inner exception.
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)
Parameters
- message
- String
The message that describes the error.
- innerException
- Exception
The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
Applies to
Entity Framework