次の方法で共有


DocumentTask.ExecMarkerCommand(IVsTextMarker, Int32) Method

Definition

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

public:
 virtual int ExecMarkerCommand(Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker ^ marker, int item);
public:
 virtual int ExecMarkerCommand(Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker ^ marker, int item);
 virtual int ExecMarkerCommand(Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker const & marker, int item);
public virtual int ExecMarkerCommand (Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker marker, int item);
abstract member ExecMarkerCommand : Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker * int -> int
override this.ExecMarkerCommand : Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker * int -> int
Public Overridable Function ExecMarkerCommand (marker As IVsTextMarker, item As Integer) As Integer

Parameters

marker
IVsTextMarker

The marker on which to execute the command.

item
Int32

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

Returns

When this method is implemented in derived classes, if it succeeds, it returns Microsoft.VisualStudio.NativeMethods.S_OK. If it fails, it returns an error code.

Implements

Remarks

By default, this method does nothing and returns <xref:Microsoft.VisualStudio.NativeMethods.S_OK>. It is an implementation of ExecMarkerCommand.

Applies to