MethodException MethodException MethodException Class

Definition

Defines the exception thrown for Method related errors

public class MethodException : System.Management.Automation.ExtendedTypeSystemException
type MethodException = class
    inherit ExtendedTypeSystemException
Public Class MethodException
Inherits ExtendedTypeSystemException
Inheritance
Derived

Constructors

MethodException() MethodException() MethodException()

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

MethodException(SerializationInfo, StreamingContext) MethodException(SerializationInfo, StreamingContext) MethodException(SerializationInfo, StreamingContext)

Initializes a new instance of MethodException with serialization parameters

MethodException(String) MethodException(String) MethodException(String)

Initializes a new instance of MethodException setting the message

MethodException(String, Exception) MethodException(String, Exception) MethodException(String, Exception)

Initializes a new instance of MethodException setting the message and innerException

Properties

ErrorRecord ErrorRecord ErrorRecord Inherited from RuntimeException
StackTrace StackTrace StackTrace Inherited from RuntimeException
WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement Inherited from RuntimeException

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) Inherited from RuntimeException

Applies to