Share via


ItemNotFoundException Constructors

Definition

Overloads

ItemNotFoundException()

Constructs a ItemNotFoundException.

ItemNotFoundException(String)

Constructs a ItemNotFoundException.

ItemNotFoundException(SerializationInfo, StreamingContext)
Obsolete.

Constructs a ItemNotFoundException using serialized data.

ItemNotFoundException(String, Exception)

Constructs a ItemNotFoundException.

ItemNotFoundException()

Constructs a ItemNotFoundException.

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

Applies to

ItemNotFoundException(String)

Constructs a ItemNotFoundException.

public:
 ItemNotFoundException(System::String ^ message);
public:
 ItemNotFoundException(Platform::String ^ message);
 ItemNotFoundException(std::wstring const & message);
public ItemNotFoundException (string message);
new System.Management.Automation.ItemNotFoundException : string -> System.Management.Automation.ItemNotFoundException
Public Sub New (message As String)

Parameters

message
String

The message used by the exception.

Applies to

ItemNotFoundException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Constructs a ItemNotFoundException using serialized data.

protected:
 ItemNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ItemNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected ItemNotFoundException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.ItemNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.ItemNotFoundException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new System.Management.Automation.ItemNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.ItemNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

ItemNotFoundException(String, Exception)

Constructs a ItemNotFoundException.

public:
 ItemNotFoundException(System::String ^ message, Exception ^ innerException);
public ItemNotFoundException (string message, Exception innerException);
new System.Management.Automation.ItemNotFoundException : string * Exception -> System.Management.Automation.ItemNotFoundException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message used by the exception.

innerException
Exception

The exception that caused the error.

Applies to