Delen via


DocumentTask.ExecMarkerCommand Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Public Overridable Function ExecMarkerCommand ( _
    marker As IVsTextMarker, _
    item As Integer _
) As Integer
public virtual int ExecMarkerCommand(
    IVsTextMarker marker,
    int item
)
public:
virtual int ExecMarkerCommand(
    IVsTextMarker^ marker, 
    int item
)
abstract ExecMarkerCommand : 
        marker:IVsTextMarker * 
        item:int -> int  
override ExecMarkerCommand : 
        marker:IVsTextMarker * 
        item:int -> int
public function ExecMarkerCommand(
    marker : IVsTextMarker, 
    item : int
) : int

Parameters

  • item
    Type: Int32

    The ID of the command to execute. The values should be taken from MarkerCommandValues.

Return Value

Type: Int32
When this method is implemented in derived classes, if it succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTextMarkerClient.ExecMarkerCommand(IVsTextMarker, Int32)

Remarks

By default, this method does nothing and returns S_OK. It is an implementation of ExecMarkerCommand.

.NET Framework Security

See Also

Reference

DocumentTask Class

Microsoft.VisualStudio.Package Namespace