Condividi tramite


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.

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

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to