ObjectNotFoundException Constructors

Definition

Initializes a new ObjectNotFoundException object.

Overloads

ObjectNotFoundException()

Initializes a new ObjectNotFoundException object.

ObjectNotFoundException(Exception)

Initializes a new ObjectNotFoundException object by specifying an inner exception that caused the current exception.

ObjectNotFoundException(String)

Initializes a new ObjectNotFoundException object by specifying the error message that describes the current exception.

ObjectNotFoundException(SerializationInfo, StreamingContext)

Initializes a new ObjectNotFoundException object with serialized data.

ObjectNotFoundException(String, Exception)

Initializes a new ObjectNotFoundException object with an error message and inner exception.

ObjectNotFoundException(Type, Guid)

Initializes a new ObjectNotFoundException object with the type and identifier for the object that could not be found.

ObjectNotFoundException(Type, String)

Initializes a new ObjectNotFoundException object with the type and name of the object that could not be found.

ObjectNotFoundException()

Initializes a new ObjectNotFoundException object.

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

Applies to

ObjectNotFoundException(Exception)

Initializes a new ObjectNotFoundException object by specifying an inner exception that caused the current exception.

public:
 ObjectNotFoundException(Exception ^ inner);
public ObjectNotFoundException (Exception inner);
new Microsoft.EnterpriseManagement.Common.ObjectNotFoundException : Exception -> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException
Public Sub New (inner As Exception)

Parameters

inner
Exception

The Exception instance that caused the current exception.

Applies to

ObjectNotFoundException(String)

Initializes a new ObjectNotFoundException object by specifying the error message that describes the current exception.

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

Parameters

message
String

The error message that describes the current exception.

Applies to

ObjectNotFoundException(SerializationInfo, StreamingContext)

Initializes a new ObjectNotFoundException object with serialized data.

protected:
 ObjectNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ObjectNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.EnterpriseManagement.Common.ObjectNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo object that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext object that contains contextual information about the source or destination.

Applies to

ObjectNotFoundException(String, Exception)

Initializes a new ObjectNotFoundException object with an error message and inner exception.

public:
 ObjectNotFoundException(System::String ^ message, Exception ^ inner);
public ObjectNotFoundException (string message, Exception inner);
new Microsoft.EnterpriseManagement.Common.ObjectNotFoundException : string * Exception -> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

The error message that describes the current exception.

inner
Exception

The Exception instance that caused the current exception.

Applies to

ObjectNotFoundException(Type, Guid)

Initializes a new ObjectNotFoundException object with the type and identifier for the object that could not be found.

public:
 ObjectNotFoundException(Type ^ type, Guid id);
public ObjectNotFoundException (Type type, Guid id);
new Microsoft.EnterpriseManagement.Common.ObjectNotFoundException : Type * Guid -> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException
Public Sub New (type As Type, id As Guid)

Parameters

type
Type

The type of the object that could not be found.

id
Guid

The globally unique identifier (GUID) for the object that could not be found.

Applies to

ObjectNotFoundException(Type, String)

Initializes a new ObjectNotFoundException object with the type and name of the object that could not be found.

public:
 ObjectNotFoundException(Type ^ type, System::String ^ name);
public ObjectNotFoundException (Type type, string name);
new Microsoft.EnterpriseManagement.Common.ObjectNotFoundException : Type * string -> Microsoft.EnterpriseManagement.Common.ObjectNotFoundException
Public Sub New (type As Type, name As String)

Parameters

type
Type

The type of the object that could not be found.

name
String

The name of the object that could not be found.

Applies to