IVsCmdNameMapping.MapGUIDIDToName(Guid, UInt32, VSCMDNAMEOPTS, String) Yöntem

Tanım

Bir komutun GUID ve tanımlayıcısını adıyla eşleyin.

public:
 int MapGUIDIDToName(Guid % pguidCmdGroup, System::UInt32 dwCmdID, Microsoft::VisualStudio::Shell::Interop::VSCMDNAMEOPTS grfOptions, [Runtime::InteropServices::Out] System::String ^ % pbstrCmdName);
public int MapGUIDIDToName (ref Guid pguidCmdGroup, uint dwCmdID, Microsoft.VisualStudio.Shell.Interop.VSCMDNAMEOPTS grfOptions, out string pbstrCmdName);
abstract member MapGUIDIDToName : Guid * uint32 * Microsoft.VisualStudio.Shell.Interop.VSCMDNAMEOPTS * string -> int
Public Function MapGUIDIDToName (ByRef pguidCmdGroup As Guid, dwCmdID As UInteger, grfOptions As VSCMDNAMEOPTS, ByRef pbstrCmdName As String) As Integer

Parametreler

pguidCmdGroup
Guid

'ndaki Komutun ait olduğu grubun GUID 'SI.

dwCmdID
UInt32

'ndaki Komutun tanımlayıcısı.

grfOptions
VSCMDNAMEOPTS

'ndaki Alınacak ad biçimini belirten bit bayrakları. VSCMDNAMEOPTSNumaralandırmadaki değerler.

pbstrCmdName
String

dışı Komut adını içeren dize.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . S_FALSEEşleşen adı bulamazsa döndürür.

Açıklamalar

COM Imzası

Vsshell. IDL dosyasından:

HRESULT IVsCmdNameMapping::MapGUIDIDToName(  
   [in] const GUID *pguidCmdGroup, ]  
   [in] DWORD dwCmdID,   
   [in] VSCMDNAMEOPTS grfOptions,   
   [out] BSTR *pbstrCmdName  
);  

Şunlara uygulanır