Leer en inglés

Compartir a través de


MethodException Class

Definition

Defines the exception thrown for Method related errors.

C++
public ref class MethodException : System::Management::Automation::ExtendedTypeSystemException
Inheritance
Derived
Attributes

Constructors

MethodException()

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

MethodException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of MethodException with serialization parameters.

MethodException(String, Exception)

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

MethodException(String)

Initializes a new instance of MethodException setting the message.

Properties

ErrorRecord

Additional information about the error.

(Inherited from RuntimeException)
WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

Applies to

Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0