Partager via


AuthoringSink.CodeSpan Method

This adds a span of executable code 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 CodeSpan ( _
    span As TextSpan _
)
public virtual void CodeSpan(
    TextSpan span
)
public:
virtual void CodeSpan(
    TextSpan span
)
abstract CodeSpan : 
        span:TextSpan -> unit  
override CodeSpan : 
        span:TextSpan -> unit
public function CodeSpan(
    span : TextSpan
)

Parameters

Remarks

The spans stored in the list by this method are used to validate breakpoints. If you want to support this functionality, 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 ValidateBreakpointLocation method. You must supply the method needed to retrieve the code span from your version of the AuthoringSink class.

The base method does nothing.

.NET Framework Security

See Also

Reference

AuthoringSink Class

Microsoft.VisualStudio.Package Namespace