Delen via


MethodInvocationException Class

Definition

Defines the exception thrown for Method invocation exceptions.

public ref class MethodInvocationException : System::Management::Automation::MethodException
[System.Serializable]
public class MethodInvocationException : System.Management.Automation.MethodException
public class MethodInvocationException : System.Management.Automation.MethodException
[<System.Serializable>]
type MethodInvocationException = class
    inherit MethodException
type MethodInvocationException = class
    inherit MethodException
Public Class MethodInvocationException
Inherits MethodException
Inheritance
Attributes

Constructors

MethodInvocationException()

Initializes a new instance of MethodInvocationException with the message set to typeof(MethodInvocationException).FullName.

MethodInvocationException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of MethodInvocationException with serialization parameters.

MethodInvocationException(String, Exception)

Initializes a new instance of MethodInvocationException setting the message and innerException.

MethodInvocationException(String)

Initializes a new instance of MethodInvocationException setting the message.

Properties

ErrorRecord

Additional information about the error.

(Inherited from RuntimeException)
WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to