ObjectNotFoundException Konstruktorer

Definition

Initierar en ny instans av ObjectNotFoundException.

Överlagringar

Name Description
ObjectNotFoundException()

Initierar en ny instans av ObjectNotFoundException.

ObjectNotFoundException(String)

Initierar en ny instans av ObjectNotFoundException med ett specialiserat felmeddelande.

ObjectNotFoundException(String, Exception)

Initierar en ny instans av ObjectNotFoundException klassen som använder ett angivet felmeddelande och en referens till det inre undantaget.

Kommentarer

Mer information om hur du hanterar undantag i koden Exceptionfinns i .

ObjectNotFoundException()

Initierar en ny instans av ObjectNotFoundException.

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

Kommentarer

Mer information om hur du hanterar undantag i koden Exceptionfinns i .

Gäller för

ObjectNotFoundException(String)

Initierar en ny instans av ObjectNotFoundException med ett specialiserat felmeddelande.

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

Parametrar

message
String

Meddelandet som beskriver felet.

Kommentarer

Mer information om hur du hanterar undantag i koden Exceptionfinns i .

Gäller för

ObjectNotFoundException(String, Exception)

Initierar en ny instans av ObjectNotFoundException klassen som använder ett angivet felmeddelande och en referens till det inre undantaget.

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)

Parametrar

message
String

Meddelandet som beskriver felet.

innerException
Exception

Undantaget som är orsaken till det aktuella undantaget eller en null-referens (Nothing i Visual Basic) om inget inre undantag har angetts.

Kommentarer

Mer information om hur du hanterar undantag i koden Exceptionfinns i .

Gäller för