StackFrame2.Depth Property

Definition

Gets the depth of the frame in the stack. A read-only property.

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

Property Value

A value indicating how deeply the frame lies within the stack. This value is 1-based, not 0-based. In other words, the top frame on the stack is number 1, not number 0.

Attributes

Remarks

You can use the value to uniquely identify an instance of a frame to consumers. This can be especially useful in recursive calls.

Applies to