StackFrames.Count Property

Definition

Gets a value indicating the number of objects in the collection.

public:
 property int Count { int get(); };
public:
 property int Count { int get(); };
[System.Runtime.InteropServices.DispId(3)]
public int Count { [System.Runtime.InteropServices.DispId(3)] get; }
[<System.Runtime.InteropServices.DispId(3)>]
[<get: System.Runtime.InteropServices.DispId(3)>]
member this.Count : int
Public ReadOnly Property Count As Integer

Property Value

An integer value indicating the number of objects in the StackFrames collection.

Attributes

Examples

The following example demonstrates how to use the Count property.

public static void StackFramesCount(DTE dte)  
{  
    EnvDTE.StackFrames stackFrames = dte.Debugger.CurrentThread.StackFrames;  
    MessageBox.Show("\nThere are  " + stackFrames.Count +   
                    " stack frames.\n", "Stack Frames Count Property Test" );  
}  
Shared Sub StackFramesCount(ByRef dte As EnvDTE.DTE)  
    Dim stackFrames As EnvDTE.StackFrames = dte.Debugger.CurrentThread.StackFrames  
    MessageBox.Show("There are " + stackFrames.Count.ToString() + _  
                    " stack frames.", "Stack Frame Test - Count Property")  
End Sub  

Applies to