共用方式為


AuthoringSink.AutoExpression(TextSpan) Method

Definition

AutoExpression is in support of IVsLanguageDebugInfo.GetProximityExpressions. It is called for each expression that might be interesting for a user in the "Auto Debugging" window. All names that are set using StartName and QualifyName are already automatically added to the "Auto" window! This means that AutoExpression is rarely used.

public:
 virtual void AutoExpression(Microsoft::VisualStudio::TextManager::Interop::TextSpan expr);
public:
 virtual void AutoExpression(Microsoft::VisualStudio::TextManager::Interop::TextSpan expr);
 virtual void AutoExpression(Microsoft::VisualStudio::TextManager::Interop::TextSpan expr);
public virtual void AutoExpression (Microsoft.VisualStudio.TextManager.Interop.TextSpan expr);
abstract member AutoExpression : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> unit
override this.AutoExpression : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> unit
Public Overridable Sub AutoExpression (expr As TextSpan)

Parameters

expr
TextSpan

[in] A TextSpan object indicating the expression to add.

Remarks

If you want to support expressions in the debugger's Autos window, you must derive a class from the AuthoringSink class and implement this method and the associated internal list. This list can then be used to implement the language service's GetProximityExpressions method. You must supply the method or methods needed to retrieve the contents of your list of expressions from your version of the AuthoringSink class.

The base method does nothing.

Applies to