Udostępnij za pośrednictwem


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.

public ref class CmdletProviderInvocationException : System::Management::Automation::CmdletInvocationException
[System.Serializable]
public class CmdletProviderInvocationException : System.Management.Automation.CmdletInvocationException
public class CmdletProviderInvocationException : System.Management.Automation.CmdletInvocationException
[<System.Serializable>]
type CmdletProviderInvocationException = class
    inherit CmdletInvocationException
type CmdletProviderInvocationException = class
    inherit CmdletInvocationException
Public Class CmdletProviderInvocationException
Inherits 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

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from CmdletInvocationException)

Applies to