Partager via


ProviderInvocationException Constructors

Definition

Overloads

ProviderInvocationException()

Constructs a ProviderInvocationException.

ProviderInvocationException(String)

Constructs a ProviderInvocationException with a message.

ProviderInvocationException(SerializationInfo, StreamingContext)
Obsolete.

Constructs a ProviderInvocationException using serialized data.

ProviderInvocationException(String, Exception)

Constructs a ProviderInvocationException with a message and inner exception.

ProviderInvocationException()

Constructs a ProviderInvocationException.

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

Applies to

ProviderInvocationException(String)

Constructs a ProviderInvocationException with a message.

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

Parameters

message
String

The message for the exception.

Applies to

ProviderInvocationException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Constructs a ProviderInvocationException using serialized data.

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

Parameters

info
SerializationInfo

serialization information

context
StreamingContext

streaming context

Attributes

Applies to

ProviderInvocationException(String, Exception)

Constructs a ProviderInvocationException with a message and inner exception.

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

Parameters

message
String

The message for the exception.

innerException
Exception

The inner exception for this exception.

Applies to