Executes a command on a specific marker within the text buffer.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Overridable Function ExecMarkerCommand ( _
marker As IVsTextMarker, _
item As Integer _
) As Integer
'使用
Dim instance As DocumentTask
Dim marker As IVsTextMarker
Dim item As Integer
Dim returnValue As Integer
returnValue = instance.ExecMarkerCommand(marker, _
item)
public virtual int ExecMarkerCommand(
IVsTextMarker marker,
int item
)
public:
virtual int ExecMarkerCommand(
IVsTextMarker^ marker,
int item
)
public function ExecMarkerCommand(
marker : IVsTextMarker,
item : int
) : int
Parameters
marker
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextMarkerThe marker on which to execute the command.
item
Type: System.Int32The ID of the command to execute. The values should be taken from MarkerCommandValues.
Return Value
Type: System.Int32
When implemented in derived classes, if the method 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.
Permissions
- 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.