StackFrame.GetFileLineNumber Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the line number in the file that contains the code that is executing. This information is typically extracted from the debugging symbols for the executable.
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System.Int32The file line number.-or- 0 (zero) if the file line number cannot be determined.
Show: