StackFrame2.Depth 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取堆栈中帧的深度。 一个只读属性。
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
属性值
一个指示帧位于堆栈内的深度的值。 此值是基于 1 的,不是基于 0 的。 换言之,堆栈的顶部帧为数字 1,而非数字 0。
- 属性
注解
您可以使用此值来唯一地向使用者标识框架的实例。 这在递归调用中尤其有用。