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

 

Returns text marker command information.

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

int GetMarkerCommandInfo(
	int iItem,
	array<String^>^ pbstrText,
	array<unsigned int>^ pcmdf
)

Parameters

iItem
Type: System::Int32

[in] Integer identifying the item number for a marker type's context menu command. Values typically range from 0 to 9, but the marker type may also support command values 101 through 103. For more information about these command values, see MarkerCommandValues.

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

[out] Pointer to a string identifying the marker type command text for the context menu.

pcmdf
Type: array<System::UInt32>^

[out] Specifies command flags.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsTextStreamMarker::GetMarkerCommandInfo(
   [in] long iItem,
   [out, custom(uuid_IVsTextMarker, "optional")] BSTR * pbstrText,
   [out] DWORD* pcmdf
);

Use this method to return command information associated with a given marker type. Use IVsTextMarker::ExecMarkerCommand to execute the command against the marker type.

Return to top
Show: