Dela via


CmdletProviderInvocationException Constructors

Definition

Overloads

CmdletProviderInvocationException()

Instantiates a new instance of the CmdletProviderInvocationException class.

CmdletProviderInvocationException(String)

Instantiates a new instance of the CmdletProviderInvocationException class.

CmdletProviderInvocationException(SerializationInfo, StreamingContext)
Obsolete.

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

CmdletProviderInvocationException(String, Exception)

Instantiates a new instance of the CmdletProviderInvocationException class.

CmdletProviderInvocationException()

Instantiates a new instance of the CmdletProviderInvocationException class.

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

Applies to

CmdletProviderInvocationException(String)

Instantiates a new instance of the CmdletProviderInvocationException class.

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

Parameters

message
String

Applies to

CmdletProviderInvocationException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

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

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

CmdletProviderInvocationException(String, Exception)

Instantiates a new instance of the CmdletProviderInvocationException class.

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

Parameters

message
String
innerException
Exception

Applies to