Lire en anglais

Partager via


ProviderInvocationException Class

Definition

An exception that wraps all exceptions that are thrown by providers. This allows callers of the provider APIs to be able to catch a single exception no matter what any of the various providers may have thrown.

C++
public ref class ProviderInvocationException : System::Management::Automation::RuntimeException
Inheritance
ProviderInvocationException
Attributes

Constructors

ProviderInvocationException()

Constructs a ProviderInvocationException.

ProviderInvocationException(SerializationInfo, StreamingContext)
Obsolete.

Constructs a ProviderInvocationException using serialized data.

ProviderInvocationException(String, Exception)

Constructs a ProviderInvocationException with a message and inner exception.

ProviderInvocationException(String)

Constructs a ProviderInvocationException with a message.

Properties

ErrorRecord

Gets the error record.

Message

Gets the exception message.

ProviderInfo

Gets the provider information of the provider that threw an exception.

WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

Applies to

Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0