Επεξεργασία

Κοινή χρήση μέσω


ObjectNotFoundException Constructors

Definition

Initializes a new instance of ObjectNotFoundException.

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.

Remarks

For more information about how to handle exceptions in your code, see Exception.

ObjectNotFoundException()

Initializes a new instance of ObjectNotFoundException.

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

Remarks

For more information about how to handle exceptions in your code, see Exception.

Applies to

ObjectNotFoundException(String)

Initializes a new instance of ObjectNotFoundException with a specialized error message.

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

Parameters

message
String

The message that describes the error.

Remarks

For more information about how to handle exceptions in your code, see Exception.

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(System::String ^ message, Exception ^ innerException);
public ObjectNotFoundException (string message, Exception innerException);
new System.Data.ObjectNotFoundException : string * Exception -> System.Data.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.

Remarks

For more information about how to handle exceptions in your code, see Exception.

Applies to