IVsProfferCommands2.AddNamedCommand 方法 (Guid%, Guid%, String, UInt32%, String, String, String, String, UInt32, UInt32, UInt32, UInt32, Guid%)
這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。
僅限 Microsoft 內部使用。
命名空間: EnvDTE80
組件: EnvDTE80 (在 EnvDTE80.dll 中)
語法
'宣告
Sub AddNamedCommand ( _
ByRef pguidPackage As Guid, _
ByRef pguidCmdGroup As Guid, _
pszCmdNameCanonical As String, _
<OutAttribute> 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 _
)
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
)
void AddNamedCommand(
[InAttribute] Guid% pguidPackage,
[InAttribute] Guid% pguidCmdGroup,
[InAttribute] String^ pszCmdNameCanonical,
[OutAttribute] unsigned int% pdwCmdId,
[InAttribute] String^ pszCmdNameLocalized,
[InAttribute] String^ pszBtnText,
[InAttribute] String^ pszCmdTooltip,
[InAttribute] String^ pszSatelliteDLL,
[InAttribute] unsigned int dwBitmapResourceId,
[InAttribute] unsigned int dwBitmapImageIndex,
[InAttribute] unsigned int dwCmdFlagsDefault,
[InAttribute] unsigned int cUIContexts,
[InAttribute] Guid% rgguidUIContexts
)
abstract AddNamedCommand :
pguidPackage:Guid byref *
pguidCmdGroup:Guid byref *
pszCmdNameCanonical:string *
pdwCmdId:uint32 byref *
pszCmdNameLocalized:string *
pszBtnText:string *
pszCmdTooltip:string *
pszSatelliteDLL:string *
dwBitmapResourceId:uint32 *
dwBitmapImageIndex:uint32 *
dwCmdFlagsDefault:uint32 *
cUIContexts:uint32 *
rgguidUIContexts:Guid byref -> unit
function AddNamedCommand(
pguidPackage : Guid,
pguidCmdGroup : Guid,
pszCmdNameCanonical : String,
pdwCmdId : uint,
pszCmdNameLocalized : String,
pszBtnText : String,
pszCmdTooltip : String,
pszSatelliteDLL : String,
dwBitmapResourceId : uint,
dwBitmapImageIndex : uint,
dwCmdFlagsDefault : uint,
cUIContexts : uint,
rgguidUIContexts : Guid
)
參數
- pguidPackage
型別:System.Guid%
- pguidCmdGroup
型別:System.Guid%
- pszCmdNameCanonical
型別:System.String
- pdwCmdId
型別:System.UInt32%
- pszCmdNameLocalized
型別:System.String
- pszBtnText
型別:System.String
- pszCmdTooltip
型別:System.String
- pszSatelliteDLL
型別:System.String
- dwBitmapResourceId
型別:System.UInt32
- dwBitmapImageIndex
型別:System.UInt32
- dwCmdFlagsDefault
型別:System.UInt32
- cUIContexts
型別:System.UInt32
- rgguidUIContexts
型別:System.Guid%
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。