StackFrame.Arguments Property

 

Gets a collection of expressions that represent the arguments passed to this frame.

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

Expressions Arguments { get; }

Property Value

Type: EnvDTE.Expressions

An Expressions collection.

Arguments returns a collection of Expressions that represent the arguments passed to this frame.

The following example demonstrates how to use the Arguments property.

public static void Arguments(DTE dte)
{
    // Setup debug Output window.
    Window w = (Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
    w.Visible = true;
    OutputWindow ow = (OutputWindow)w.Object;
    OutputWindowPane owp = ow.OutputWindowPanes.Add("Arguments Property Test");
    owp.Activate();

    EnvDTE.Expressions expressions = dte.Debugger.CurrentStackFrame.Arguments;
    foreach(EnvDTE.Expression exp in expressions)
        owp.OutputString("\nExpression: " + exp.Name + " = " + exp.Value);
}
Return to top
Show: