IVsCmdNameMapping::MapGUIDIDToName Method (Guid, UInt32, VSCMDNAMEOPTS, String^)
Visual Studio 2015
Map the GUID and identifier of a command to its name.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int MapGUIDIDToName( [InAttribute] Guid% pguidCmdGroup, unsigned int dwCmdID, VSCMDNAMEOPTS grfOptions, [OutAttribute] String^% pbstrCmdName )
Parameters
- pguidCmdGroup
-
Type:
System::Guid
[in] The GUID of the group the command belongs to.
- dwCmdID
-
Type:
System::UInt32
[in] The identifier of the command.
- grfOptions
-
Type:
Microsoft.VisualStudio.Shell.Interop::VSCMDNAMEOPTS
[in] Bit flags specifying what form of the name to retrieve. Values taken from the VSCMDNAMEOPTS enumeration.
- pbstrCmdName
-
Type:
System::String^
[out] String containing the command name.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. Returns S_FALSE if it cannot find the matching name.
From vsshell.idl:
HRESULT IVsCmdNameMapping::MapGUIDIDToName( [in] const GUID *pguidCmdGroup, ] [in] DWORD dwCmdID, [in] VSCMDNAMEOPTS grfOptions, [out] BSTR *pbstrCmdName );
Show: