DocumentTask::GetMarkerCommandInfo Method (IVsTextMarker^, Int32, array<String^>^, array<UInt32>^)

 

Queries the marker for the command information.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int GetMarkerCommandInfo(
	IVsTextMarker^ marker,
	int item,
	array<String^>^ text,
	array<unsigned int>^ commandFlags
)

Parameters

marker
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextMarker^

The marker to query.

item
Type: System::Int32

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

text
Type: array<System::String^>^

The text of the marker command in the context menu.

commandFlags
Type: array<System::UInt32>^

[out] the command flags.

Return Value

Type: System::Int32

When this method is implemented by derived classes, if it succeeds, it returns F:Microsoft.VisualStudio.NativeMethods.S_OK. If it fails, it returns an error code.

By default, this method returns F:Microsoft.VisualStudio.NativeMethods.E_NOTIMPL. It is an implementation of GetMarkerCommandInfo.

Return to top
Show: