Partager via


IVsTextMarkerClient.GetMarkerCommandInfo Method

Definition

Queries the marker for the command information.

public:
 int GetMarkerCommandInfo(Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker ^ pMarker, int iItem, cli::array <System::String ^> ^ pbstrText, cli::array <System::UInt32> ^ pcmdf);
public:
 int GetMarkerCommandInfo(Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker ^ pMarker, int iItem, Platform::Array <Platform::String ^> ^ pbstrText, Platform::Array <unsigned int> ^ pcmdf);
int GetMarkerCommandInfo(Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker const & pMarker, int iItem, std::Array <std::wstring const &> const & pbstrText, std::Array <unsigned int> const & pcmdf);
public int GetMarkerCommandInfo (Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker pMarker, int iItem, string[] pbstrText, uint[] pcmdf);
abstract member GetMarkerCommandInfo : Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker * int * string[] * uint32[] -> int
Public Function GetMarkerCommandInfo (pMarker As IVsTextMarker, iItem As Integer, pbstrText As String(), pcmdf As UInteger()) As Integer

Parameters

pMarker
IVsTextMarker

[in] Pointer to the IVsTextMarker interface for the marker.

iItem
Int32

[in] ] Command selected by the user from the context menu. For a list of iItem values, see MarkerCommandValues.

pbstrText
String[]

[out] Text of the marker command in the context menu.

pcmdf
UInt32[]

[out] Pointer to command flags.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

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.

Applies to