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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
‘선언
Public Overridable Sub CodeSpan ( _
span As TextSpan _
)
‘사용 방법
Dim instance As AuthoringSink
Dim span As TextSpan
instance.CodeSpan(span)
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
- 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.