Partager via


IVsProfferCommands.AddNamedCommand Method

Definition

Microsoft Internal Use Only.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 void AddNamedCommand(Guid % pguidPackage, Guid % pguidCmdGroup, System::String ^ pszCmdNameCanonical, [Runtime::InteropServices::Out] System::UInt32 % pdwCmdId, System::String ^ pszCmdNameLocalized, System::String ^ pszBtnText, System::String ^ pszCmdTooltip, System::String ^ pszSatelliteDLL, System::UInt32 dwBitmapResourceId, System::UInt32 dwBitmapImageIndex, System::UInt32 dwCmdFlagsDefault, System::UInt32 cUIContexts, Guid % rgguidUIContexts);
public void AddNamedCommand (ref Guid pguidPackage, ref Guid pguidCmdGroup, string pszCmdNameCanonical, out uint pdwCmdId, string pszCmdNameLocalized, string pszBtnText, string pszCmdTooltip, string pszSatelliteDLL, uint dwBitmapResourceId, uint dwBitmapImageIndex, uint dwCmdFlagsDefault, uint cUIContexts, ref Guid rgguidUIContexts);
abstract member AddNamedCommand : Guid * Guid * string * uint32 * string * string * string * string * uint32 * uint32 * uint32 * uint32 * Guid -> unit
Public Sub AddNamedCommand (ByRef pguidPackage As Guid, ByRef pguidCmdGroup As Guid, pszCmdNameCanonical As String, ByRef pdwCmdId As UInteger, pszCmdNameLocalized As String, pszBtnText As String, pszCmdTooltip As String, pszSatelliteDLL As String, dwBitmapResourceId As UInteger, dwBitmapImageIndex As UInteger, dwCmdFlagsDefault As UInteger, cUIContexts As UInteger, ByRef rgguidUIContexts As Guid)

Parameters

pguidPackage
Guid

The GUID of the package.

pguidCmdGroup
Guid

The GUID of the command group.

pszCmdNameCanonical
String

The name of the command.

pdwCmdId
UInt32

The command ID of the command.

pszCmdNameLocalized
String

The localized name of the command.

pszBtnText
String

The button text.

pszCmdTooltip
String

The tooltip information about the command.

pszSatelliteDLL
String

The name of the satellite assembly.

dwBitmapResourceId
UInt32

The bitmap resource ID.

dwBitmapImageIndex
UInt32

The index of the bitmap resource.

dwCmdFlagsDefault
UInt32

The default flags.

cUIContexts
UInt32

The UI contexts.

rgguidUIContexts
Guid

The GUID of the UI contexts.

Applies to