DocumentTask.Span Property

Gets the span where the error occurred.

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

Syntax

'宣言
Public ReadOnly Property Span As TextSpan
'使用
Dim instance As DocumentTask
Dim value As TextSpan

value = instance.Span
public TextSpan Span { get; }
public:
property TextSpan Span {
    TextSpan get ();
}
public function get Span () : TextSpan

Property Value

Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan

A TextSpan object from the IVsTextLineMarker object that was passed to the DocumentTask class constructor, if it is non-a null reference (Nothing in Visual Basic). Otherwise, the TextSpan object that was passed to the DocumentTask class constructor.

Permissions

See Also

Reference

DocumentTask Class

DocumentTask Members

Microsoft.VisualStudio.Package Namespace