共用方式為


DocumentTask.GetMarkerCommandInfo Method

Definition

Queries the marker for the command information.

public:
 virtual int GetMarkerCommandInfo(Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker ^ marker, int item, cli::array <System::String ^> ^ text, cli::array <System::UInt32> ^ commandFlags);
public:
 virtual int GetMarkerCommandInfo(Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker ^ marker, int item, Platform::Array <Platform::String ^> ^ text, Platform::Array <unsigned int> ^ commandFlags);
 virtual int GetMarkerCommandInfo(Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker const & marker, int item, std::Array <std::wstring const &> const & text, std::Array <unsigned int> const & commandFlags);
public virtual int GetMarkerCommandInfo (Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker marker, int item, string[] text, uint[] commandFlags);
abstract member GetMarkerCommandInfo : Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker * int * string[] * uint32[] -> int
override this.GetMarkerCommandInfo : Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker * int * string[] * uint32[] -> int
Public Overridable Function GetMarkerCommandInfo (marker As IVsTextMarker, item As Integer, text As String(), commandFlags As UInteger()) As Integer

Parameters

marker
IVsTextMarker

The marker to query.

item
Int32

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

text
String[]

The text of the marker command in the context menu.

commandFlags
UInt32[]

[out] the command flags.

Returns

When this method is implemented by 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 returns <xref:Microsoft.VisualStudio.NativeMethods.E_NOTIMPL>. It is an implementation of GetMarkerCommandInfo.

Applies to