IVsTextMarkerClient.GetMarkerCommandInfo Method

Queries the marker for the command information.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)


Function GetMarkerCommandInfo ( _
    pMarker As IVsTextMarker, _
    iItem As Integer, _
    <OutAttribute> pbstrText As String(), _
    <OutAttribute> pcmdf As UInteger() _
) As Integer
Dim instance As IVsTextMarkerClient
Dim pMarker As IVsTextMarker
Dim iItem As Integer
Dim pbstrText As String()
Dim pcmdf As UInteger()
Dim returnValue As Integer

returnValue = instance.GetMarkerCommandInfo(pMarker, _
    iItem, pbstrText, pcmdf)
int GetMarkerCommandInfo(
    IVsTextMarker pMarker,
    int iItem,
    string[] pbstrText,
    uint[] pcmdf
int GetMarkerCommandInfo(
    [InAttribute] IVsTextMarker^ pMarker, 
    [InAttribute] int iItem, 
    [OutAttribute] array<String^>^ pbstrText, 
    [OutAttribute] array<unsigned int>^ pcmdf
abstract GetMarkerCommandInfo : 
        pMarker:IVsTextMarker * 
        iItem:int * 
        pbstrText:string[] byref * 
        pcmdf:uint32[] byref -> int 
function GetMarkerCommandInfo(
    pMarker : IVsTextMarker, 
    iItem : int, 
    pbstrText : String[], 
    pcmdf : uint[]
) : int


  • pbstrText
    Type: array<System.String[]
    [out] Text of the marker command in the context menu.
  • pcmdf
    Type: array<System.UInt32[]
    [out] Pointer to command flags.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.


COM Signature

From textmgr.idl:

HRESULT IVsTextMarkerClient::GetMarkerCommandInfo(
   [in] IVsTextMarker* pMarker,
   [in] long iItem,
   [out, custom(uuid_IVsTextMarkerClient, "optional")] BSTR * pbstrText,
   [out] DWORD* pcmdf

Implement this method along with ExecMarkerCommand to override the marker commands that the text marker itself provides to the context menu.

.NET Framework Security

See Also


IVsTextMarkerClient Interface

IVsTextMarkerClient Members

Microsoft.VisualStudio.TextManager.Interop Namespace