IVsSmartTagData::GetContextMenuInfo Method (Guid, Int32, IOleCommandTarget^)
Visual Studio 2015
Gets information about the context menu.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
int GetContextMenuInfo( [OutAttribute] Guid% guidID, [OutAttribute] int% nMenuID, [OutAttribute] IOleCommandTarget^% pCmdTarget )
Parameters
- guidID
-
Type:
System::Guid
[out] The GUID of the context menu.
- nMenuID
-
Type:
System::Int32
[out] The menu ID of the context menu.
- pCmdTarget
-
Type:
Microsoft.VisualStudio.OLE.Interop::IOleCommandTarget^
[out] The IOleCommandTarget of the context menu.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: