Gets the method that throws the current exception.
Assembly: mscorlib (in mscorlib.dll)
If the method that throws this exception is not available and the stack trace is not a null reference (Nothing in Visual Basic), obtains the method from the stack trace. If the stack trace is a null reference, also returns a null reference.
The property may not accurately report the name of the method in which an exception was thrown if the exception handler handles an exception across application domain boundaries.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.