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
uint Depth { get; }
property unsigned int Depth {
    unsigned int get ();
}
abstract Depth : uint32 with 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

EnvDTE90a Namespace