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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.