AuthoringSink.CodeSpan Method
This adds a span of executable code to an internal list.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'宣言
Public Overridable Sub CodeSpan ( _
span As TextSpan _
)
public virtual void CodeSpan(
TextSpan span
)
Parameters
- span
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan
[in] A TextSpan object indicating the section of code to add to the list.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.