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.
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
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tijekom 2024. postupno ćemo ukinuti servis Problemi sa servisom GitHub kao mehanizam za povratne informacije za sadržaj i zamijeniti ga novim sustavom za povratne informacije. Dodatne informacije potražite u članku:Pošaljite i pogledajte povratne informacije za