DocumentTask Class

 

Represents an item for a language service in the Error List Options window.

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


[CLSCompliantAttribute(false)]
[ComVisibleAttribute(true)]
public class DocumentTask : ErrorTask, IVsTextMarkerClient, IDisposable

NameDescription
System_CAPS_pubmethodDocumentTask(IServiceProvider, IVsTextLines, MARKERTYPE, TextSpan, String)

Initializes a new instance of DocumentTask for the specified text buffer, text span, and file name.

NameDescription
System_CAPS_pubpropertyCanDelete

Gets or sets whether or not the task can be deleted.(Inherited from Task.)

System_CAPS_pubpropertyCategory

Gets or sets the task's category.(Inherited from Task.)

System_CAPS_pubpropertyChecked

Gets or sets whether not the task's check box is currently selected or cleared.(Inherited from Task.)

System_CAPS_pubpropertyColumn

Gets or sets the column number within the file associated with the task.(Inherited from Task.)

System_CAPS_pubpropertyDocument

Gets or sets the file associated with the task.(Inherited from Task.)

System_CAPS_pubpropertyErrorCategory

Gets or sets the error category of this task.(Inherited from ErrorTask.)

System_CAPS_pubpropertyHelpKeyword

Gets or sets the Help keyword associated with the task.(Inherited from Task.)

System_CAPS_pubpropertyHierarchyItem

Gets or sets the hierarchy item associated with this task.(Inherited from ErrorTask.)

System_CAPS_pubpropertyImageIndex

Gets or sets the index of the image associated with the task.(Inherited from Task.)

System_CAPS_pubpropertyIsCheckedEditable

Gets or sets whether or not it is possible to edit the checked state of the task.(Inherited from Task.)

System_CAPS_pubpropertyIsMarkerValid

Gets whether the marker has been set to invalid.

System_CAPS_pubpropertyIsPriorityEditable

Gets or sets whether or not it is possible to edit the priority of a task.(Inherited from Task.)

System_CAPS_pubpropertyIsTextEditable

Gets or sets whether or not it is possible to edit the description of a task.(Inherited from Task.)

System_CAPS_pubpropertyLine

Gets or sets the line number of the file associated with the task.(Inherited from Task.)

System_CAPS_pubpropertyPriority

Gets or sets the priority of a task.(Inherited from Task.)

System_CAPS_pubpropertySite

Gets the service provider.

System_CAPS_pubpropertySpan

Gets the span where the error occurred.

System_CAPS_pubpropertySubcategoryIndex

Gets or sets the index of the subcategory of the task.(Inherited from Task.)

System_CAPS_pubpropertyText

Gets or sets the description of a task.(Inherited from Task.)

System_CAPS_pubpropertyTextLineMarker

Returns the text line marker object that describes the location of the error.

NameDescription
System_CAPS_pubmethodDispose()

Recovers resources just before the DocumentTask object is destroyed.

System_CAPS_protmethodDispose(Boolean)

Recovers resources just before the DocumentTask object is destroyed.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecMarkerCommand(IVsTextMarker, Int32)

Executes a command on a specific marker in the text buffer.

System_CAPS_protmethodFinalize()

Recovers resources just before the DocumentTask object is destroyed.(Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetMarkerCommandInfo(IVsTextMarker, Int32, String[], UInt32[])

Queries the marker for the command information.

System_CAPS_pubmethodGetTipText(IVsTextMarker, String[])

Gets the tip text for the text marker that is displayed when the mouse hovers over the marker.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetUserContext(IVsUserContext)

Creates a new user context.(Inherited from Task.)

System_CAPS_pubmethodMarkerInvalidated()

Called when the text that is associated with a marker is deleted by a user action.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOnAfterMarkerChange(IVsTextMarker)

Signals that the marker position has changed.

System_CAPS_pubmethodOnAfterSpanReload()

Signals that the text under the marker has been altered but the marker has not been deleted.

System_CAPS_pubmethodOnBeforeBufferClose()

Sends notification that the text buffer is about to close.

System_CAPS_pubmethodOnBufferSave(String)

Called when the buffer has been saved.

System_CAPS_protmethodOnDeleted(EventArgs)

Raised when the task has been deleted.(Inherited from Task.)

System_CAPS_protmethodOnHelp(EventArgs)

Raised when the user requests Help; for example by right-clicking and selecting Show Error Help.(Inherited from Task.)

System_CAPS_protmethodOnNavigate(EventArgs)

Loads the document that is associated with the error and jumps to the location of the error.(Overrides Task.OnNavigate(EventArgs).)

System_CAPS_protmethodOnRemoved(EventArgs)

Called when this DocumentTask object is removed from the Error List Options window.(Overrides Task.OnRemoved(EventArgs).)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventDeleted

Handles OnDeleted events.(Inherited from Task.)

System_CAPS_pubeventHelp

Handles OnHelp events.(Inherited from Task.)

System_CAPS_pubeventNavigate

Handles OnNavigate events.(Inherited from Task.)

System_CAPS_pubeventRemoved

Handles OnRemoved events.(Inherited from Task.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsErrorItem.GetCategory(UInt32)

Gets the category of the error.(Inherited from ErrorTask.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsErrorItem.GetHierarchy(IVsHierarchy)

Gets the hierarchy node associated with the task.(Inherited from ErrorTask.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.CanDelete(Int32)

Gets whether or not it is possible to delete the task.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.Category(VSTASKCATEGORY[])

Sets the task category.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.Column(Int32)

Gets the column number of the file associated with the task.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.Document(String)

Gets the name of the file associated with the task.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.get_Checked(Int32)

Determines whether the task item's check box is currently selected or cleared.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.get_Priority(VSTASKPRIORITY[])

Gets the priority of the task.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.get_Text(String)

Gets the description of the task.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.HasHelp(Int32)

Determines whether or not the task has associated help.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.ImageListIndex(Int32)

Gets the index of the image associated with the task.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.IsReadOnly(VSTASKFIELD, Int32)

Determines whether or not the specified task field is read-only.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.Line(Int32)

Gets the line number of the file associated with the task.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.NavigateTo()

Opens a file associated with a task and moves to the appropriate position in the file. (Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.NavigateToHelp()

Opens the Help resource associated with a task.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.OnDeleteTask()

Raised when a task has been deleted.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.OnFilterTask(Int32)

Raised when a task has been filtered into or out of a view.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.put_Checked(Int32)

Sets whether a task item's check box is selected or cleared.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.put_Priority(VSTASKPRIORITY)

Sets the priority level of a task item. (Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.put_Text(String)

Sets the description of the task.(Inherited from Task.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIVsTaskItem.SubcategoryIndex(Int32)

Gets the index of the task in the subcategory list.(Inherited from Task.)

This class is a specialized version of the ErrorTask class and represents an item that reports a problem in the parsing of the current source file. In addition, it supports the functionality of jumping to the line that caused the error. This class overrides the ErrorTask and Task base classes and creates an IVsTextLineMarker object that manages a span in a buffer and provides custom navigation to the source of the error.

Notes to Implementers:

This class contains all the functionality that is required to manage an item in the Error List Options window. You can derive from this class to change marker command behaviors. Beyond this, you do not have to derive from this class.

Notes to Callers:

An instance of this class is created in the M:Microsoft.VisualStudio.Package.Source.CreateErrorTaskItem(Microsoft.VisualStudio.TextManager.Interop.IVsTextLineMarker,Microsoft.VisualStudio.TextManager.Interop.TextSpan,System.String) method in the Source class. The Source class uses the DocumentTask class to show all warnings and errors that are produced by the language service parser. Typically, the Source class handles all instances of the DocumentTask class internally.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: