共用方式為


StackFrame.Arguments Property

Definition

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

public:
 property EnvDTE::Expressions ^ Arguments { EnvDTE::Expressions ^ get(); };
[System.Runtime.InteropServices.DispId(104)]
public EnvDTE.Expressions Arguments { [System.Runtime.InteropServices.DispId(104)] get; }
[<System.Runtime.InteropServices.DispId(104)>]
[<get: System.Runtime.InteropServices.DispId(104)>]
member this.Arguments : EnvDTE.Expressions
Public ReadOnly Property Arguments As Expressions

Property Value

An Expressions collection.

Attributes

Examples

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);  
}  
Shared Sub Arguments(ByRef dte As EnvDTE.DTE)  
    Dim str As String  
    Dim exps As EnvDTE.Expressions = dte.Debugger.CurrentStackFrame.Arguments  
    For Each exp As EnvDTE.Expression In exps  
        str += vbCrLf + vbTab + "Expression: " + _  
               exp.Name + " = " + exp.Value.ToString()  
    Next  
    MessageBox.Show(str, "Stack Frame Test - Arguments Property")  
End Sub  

Remarks

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

Applies to