Share via


StackFrame2.Depth Property

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

Namespace:  EnvDTE90a
Assembly:  EnvDTE90a (in EnvDTE90a.dll)

Syntax

'Declaration
ReadOnly Property Depth As UInteger
'Usage
Dim instance As StackFrame2 
Dim value As UInteger 

value = instance.Depth
uint Depth { get; }
property unsigned int Depth {
    unsigned int get ();
}
function get Depth () : uint

Property Value

Type: System.UInt32
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.

Remarks

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

.NET Framework Security

See Also

Reference

StackFrame2 Interface

StackFrame2 Members

EnvDTE90a Namespace