Bagikan melalui


IVsCmdNameMapping.MapGUIDIDToName Method

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)

Syntax

'Declaration
Function MapGUIDIDToName ( _
    ByRef pguidCmdGroup As Guid, _
    dwCmdID As UInteger, _
    grfOptions As VSCMDNAMEOPTS, _
    <OutAttribute> ByRef pbstrCmdName As String _
) As Integer
int MapGUIDIDToName(
    ref Guid pguidCmdGroup,
    uint dwCmdID,
    VSCMDNAMEOPTS grfOptions,
    out string pbstrCmdName
)
int MapGUIDIDToName(
    [InAttribute] Guid% pguidCmdGroup, 
    [InAttribute] unsigned int dwCmdID, 
    [InAttribute] VSCMDNAMEOPTS grfOptions, 
    [OutAttribute] String^% pbstrCmdName
)
abstract MapGUIDIDToName : 
        pguidCmdGroup:Guid byref * 
        dwCmdID:uint32 * 
        grfOptions:VSCMDNAMEOPTS * 
        pbstrCmdName:string byref -> int 
function MapGUIDIDToName(
    pguidCmdGroup : Guid, 
    dwCmdID : uint, 
    grfOptions : VSCMDNAMEOPTS, 
    pbstrCmdName : String
) : int

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.
  • 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.

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsCmdNameMapping Interface

Microsoft.VisualStudio.Shell.Interop Namespace