Читати англійською Редагувати

Поділитися через


StackFrameExtensions.GetNativeIP(StackFrame) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets an interface pointer to the start of the native code for the method that is being executed.

C#
public static IntPtr GetNativeIP(this System.Diagnostics.StackFrame stackFrame);

Parameters

stackFrame
StackFrame

A stack frame.

Returns

IntPtr

An interface pointer to the start of the native code for the method that is being executed or Zero if you're targeting the .NET Framework.

Applies to

Продукт Версії
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0