共用方式為


AuthoringSink.AutoExpression Method

Adds the span of an expression to an internal list.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Public Overridable Sub AutoExpression ( _
    expr As TextSpan _
)
public virtual void AutoExpression(
    TextSpan expr
)
public:
virtual void AutoExpression(
    TextSpan expr
)
abstract AutoExpression : 
        expr:TextSpan -> unit  
override AutoExpression : 
        expr:TextSpan -> unit
public function AutoExpression(
    expr : TextSpan
)

Parameters

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.

.NET Framework Security

See Also

Reference

AuthoringSink Class

Microsoft.VisualStudio.Package Namespace