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: Guid%[in] The GUID of the group the command belongs to.
dwCmdID
Type: 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: String%[out] String containing the command name.
Return Value
Type: 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.