AuthoringSink::AutoExpression Method (TextSpan)

 

Adds the span of an expression to an internal list.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual void AutoExpression(
	TextSpan expr
)

Parameters

expr
Type: Microsoft.VisualStudio.TextManager.Interop::TextSpan

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

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.

Return to top
Show: