StackFrame2.Depth 属性

定义

获取堆栈中帧的深度。 一个只读属性。

public:
 property System::UInt32 Depth { System::UInt32 get(); };
public:
 property unsigned int Depth { unsigned int get(); };
[System.Runtime.InteropServices.DispId(106)]
public uint Depth { [System.Runtime.InteropServices.DispId(106)] get; }
[<System.Runtime.InteropServices.DispId(106)>]
[<get: System.Runtime.InteropServices.DispId(106)>]
member this.Depth : uint32
Public ReadOnly Property Depth As UInteger

属性值

UInt32

一个指示帧位于堆栈内的深度的值。 此值是基于 1 的,不是基于 0 的。 换言之,堆栈的顶部帧为数字 1,而非数字 0。

属性

注解

您可以使用此值来唯一地向使用者标识框架的实例。 这在递归调用中尤其有用。

适用于