次の方法で共有


ApplicationFailedException Constructors

Definition

Overloads

ApplicationFailedException()

Initializes a new instance of the class ApplicationFailedException.

ApplicationFailedException(String)

Initializes a new instance of the ApplicationFailedException class and defines the error message.

ApplicationFailedException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the ApplicationFailedException class and defines the serialization information, and streaming context.

ApplicationFailedException(String, Exception)

Initializes a new instance of the ApplicationFailedException class and defines the error message and inner exception.

ApplicationFailedException()

Initializes a new instance of the class ApplicationFailedException.

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

Applies to

ApplicationFailedException(String)

Initializes a new instance of the ApplicationFailedException class and defines the error message.

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

Parameters

message
String

The error message to use when initializing this object.

Applies to

ApplicationFailedException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of the ApplicationFailedException class and defines the serialization information, and streaming context.

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

Parameters

info
SerializationInfo

The serialization information to use when initializing this object.

context
StreamingContext

The streaming context to use when initializing this object.

Attributes

Applies to

ApplicationFailedException(String, Exception)

Initializes a new instance of the ApplicationFailedException class and defines the error message and inner exception.

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

Parameters

message
String

The error message to use when initializing this object.

innerException
Exception

The inner exception to use when initializing this object.

Applies to