Freigeben über


IVsCmdNameMapping.MapNameToGUIDID(String, Guid, UInt32) Method

Definition

Maps the name of a command to the GUID of its group and its identifier.

public:
 int MapNameToGUIDID(System::String ^ pszCmdName, [Runtime::InteropServices::Out] Guid % pguidCmdGroup, [Runtime::InteropServices::Out] System::UInt32 % pdwCmdID);
public int MapNameToGUIDID (string pszCmdName, out Guid pguidCmdGroup, out uint pdwCmdID);
abstract member MapNameToGUIDID : string * Guid * uint32 -> int
Public Function MapNameToGUIDID (pszCmdName As String, ByRef pguidCmdGroup As Guid, ByRef pdwCmdID As UInteger) As Integer

Parameters

pszCmdName
String

[in] String containing the name of the command.

pguidCmdGroup
Guid

[out] The GUID of the group the command belongs to.

pdwCmdID
UInt32

[out] The command's identifier.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsCmdNameMapping::MapNameToGUIDID(  
   [in] const LPCOLESTR pszCmdName,   
   out] GUID *pguidCmdGroup,   
   out] DWORD *pdwCmdID  
);  

Applies to