IVsCmdNameMapping::MapGUIDIDToName Method (Guid, UInt32, VSCMDNAMEOPTS, String^)

 

Map the GUID and identifier of a command to its name.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

If 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
);
Return to top
Show: