Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.