IVsProfferCommands2.AddNamedCommand 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
仅限 Microsoft 内部使用。
此 API 支持产品基础结构,不能在代码中直接使用。
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)
参数
- pguidPackage
- Guid
- pguidCmdGroup
- Guid
- pszCmdNameCanonical
- String
- pdwCmdId
- UInt32
- pszCmdNameLocalized
- String
- pszBtnText
- String
- pszCmdTooltip
- String
- pszSatelliteDLL
- String
- dwBitmapResourceId
- UInt32
- dwBitmapImageIndex
- UInt32
- dwCmdFlagsDefault
- UInt32
- cUIContexts
- UInt32
- rgguidUIContexts
- Guid