IVsTextMarkerClient.ExecMarkerCommand Method
Executes a command on a specific marker within the text buffer.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
声明
Function ExecMarkerCommand ( _
pMarker As IVsTextMarker, _
iItem As Integer _
) As Integer
int ExecMarkerCommand(
IVsTextMarker pMarker,
int iItem
)
int ExecMarkerCommand(
[InAttribute] IVsTextMarker^ pMarker,
[InAttribute] int iItem
)
abstract ExecMarkerCommand :
pMarker:IVsTextMarker *
iItem:int -> int
function ExecMarkerCommand(
pMarker : IVsTextMarker,
iItem : int
) : int
Parameters
- pMarker
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker
[in] Pointer to the IVsTextMarker interface for the marker.
- iItem
Type: System.Int32
[in] Command selected by the user from the context menu. For a list of iItem values, see MarkerCommandValues.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsTextMarkerClient::ExecMarkerCommand(
[in] IVsTextMarker* pMarker,
[in] long iItem
);
Implement this method along with GetMarkerCommandInfo to override the marker commands that the text marker itself provides to the context menu.
.NET Framework Security
- 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.