CmdletInvocationException Constructors

Definition

Overloads

CmdletInvocationException()

Instantiates a new instance of the CmdletInvocationException class.

CmdletInvocationException(String)

Instantiates a new instance of the CmdletInvocationException class.

CmdletInvocationException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the CmdletInvocationException class using data serialized via ISerializable

CmdletInvocationException(String, Exception)

Instantiates a new instance of the CmdletInvocationException class.

CmdletInvocationException()

Instantiates a new instance of the CmdletInvocationException class.

C++
public:
 CmdletInvocationException();

Applies to

PowerShell SDK 7.4.0 i druge verzije
Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

CmdletInvocationException(String)

Instantiates a new instance of the CmdletInvocationException class.

C++
public:
 CmdletInvocationException(System::String ^ message);

Parameters

message
String

Applies to

PowerShell SDK 7.4.0 i druge verzije
Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

CmdletInvocationException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of the CmdletInvocationException class using data serialized via ISerializable

C++
protected:
 CmdletInvocationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

PowerShell SDK 7.4.0 i druge verzije
Proizvod Verzije (Zastarjelo)
PowerShell SDK 7.2.0, 7.3.0 (7.4.0)
Windows PowerShell 5.1.0.0

CmdletInvocationException(String, Exception)

Instantiates a new instance of the CmdletInvocationException class.

C++
public:
 CmdletInvocationException(System::String ^ message, Exception ^ innerException);

Parameters

message
String
innerException
Exception

Applies to

PowerShell SDK 7.4.0 i druge verzije
Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0