ElementNotFoundException Class

No element matches the query.

public sealed class ElementNotFoundException : Exception
Inheritance
Exception ElementNotFoundException

Constructors

NameDescription
ElementNotFoundException()Initializes a new instance of the ElementNotFoundException class.
ElementNotFoundException(string)Initializes a new instance of the ElementNotFoundException class.
ElementNotFoundException(string, Exception)Initializes a new instance of the ElementNotFoundException class.

ElementNotFoundException overloads

ElementNotFoundException()

ElementNotFoundException.cs

Initializes a new instance of the ElementNotFoundException class.

public ElementNotFoundException()

ElementNotFoundException(string)

ElementNotFoundException.cs

Initializes a new instance of the ElementNotFoundException class.

public ElementNotFoundException(string message)
Parameters
message string
The message.

ElementNotFoundException(string, Exception)

ElementNotFoundException.cs

Initializes a new instance of the ElementNotFoundException class.

public ElementNotFoundException(string message, Exception innerException)
Parameters
message string
The message.
innerException Exception
The inner exception.