CmdletProviderInvocationException Class

Definition

Indicates that a cmdlet hit a terminating error of type ProviderInvocationException. This is generally reported from the standard provider navigation cmdlets such as get-childitem.

C++
public ref class CmdletProviderInvocationException : System::Management::Automation::CmdletInvocationException
Inheritance
CmdletProviderInvocationException
Attributes

Constructors

CmdletProviderInvocationException()

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(String)

Instantiates a new instance of the CmdletProviderInvocationException class.

Properties

ErrorRecord

The error reported by the cmdlet.

(Inherited from CmdletInvocationException)
ProviderInfo

This is the ProviderInfo associated with the provider which generated the error.

ProviderInvocationException

InnerException as ProviderInvocationException.

WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

Applies to

Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0