StackFrameExtensions.GetNativeIP(StackFrame) 方法

定義

取得正在執行之方法的原生程式碼開頭的介面指標。

public:
[System::Runtime::CompilerServices::Extension]
 static IntPtr GetNativeIP(System::Diagnostics::StackFrame ^ stackFrame);
public static IntPtr GetNativeIP (this System.Diagnostics.StackFrame stackFrame);
static member GetNativeIP : System.Diagnostics.StackFrame -> nativeint
<Extension()>
Public Function GetNativeIP (stackFrame As StackFrame) As IntPtr

參數

stackFrame
StackFrame

堆疊框架。

傳回

IntPtr

nativeint

正在執行之方法的原生程式碼開頭的介面指標,或者 Zero (如果您以 .NET Framework 為目標)。

適用於

產品 版本
.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
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0