Compartir a través de


DriveNotFoundException Constructors

Definition

Overloads

DriveNotFoundException()

Constructs a DriveNotFoundException.

DriveNotFoundException(String)

Constructs a DriveNotFoundException.

DriveNotFoundException(SerializationInfo, StreamingContext)
Obsolete.

Constructs a DriveNotFoundException using serialized data.

DriveNotFoundException(String, Exception)

Constructs a DriveNotFoundException.

DriveNotFoundException()

Constructs a DriveNotFoundException.

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

Applies to

DriveNotFoundException(String)

Constructs a DriveNotFoundException.

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

Parameters

message
String

The message that will be used by the exception.

Applies to

DriveNotFoundException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Constructs a DriveNotFoundException using serialized data.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

DriveNotFoundException(String, Exception)

Constructs a DriveNotFoundException.

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

Parameters

message
String

The message that will be used by the exception.

innerException
Exception

The exception that caused the error.

Applies to