IVsProfferCommands2.AddNamedCommand2 – metoda
Toto rozhraní API podporuje infrastrukturu rozhraní .NET Framework a není určeno pro použití přímo v kódu.
Microsoft pouze pro interní použití.
Obor názvů: EnvDTE80
Sestavení: EnvDTE80 (v EnvDTE80.dll)
Syntaxe
'Deklarace
Sub AddNamedCommand2 ( _
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, _
dwUIElementType As UInteger _
)
void AddNamedCommand2(
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,
uint dwUIElementType
)
void AddNamedCommand2(
[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,
[InAttribute] unsigned int dwUIElementType
)
abstract AddNamedCommand2 :
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 *
dwUIElementType:uint32 -> unit
function AddNamedCommand2(
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,
dwUIElementType : uint
)
Parametry
- pguidPackage
Typ: System.Guid%
- pguidCmdGroup
Typ: System.Guid%
- pszCmdNameCanonical
Typ: System.String
- pdwCmdId
Typ: System.UInt32%
- pszCmdNameLocalized
Typ: System.String
- pszBtnText
Typ: System.String
- pszCmdTooltip
Typ: System.String
- pszSatelliteDLL
Typ: System.String
- dwBitmapResourceId
Typ: System.UInt32
- dwBitmapImageIndex
Typ: System.UInt32
- dwCmdFlagsDefault
Typ: System.UInt32
- cUIContexts
Typ: System.UInt32
- rgguidUIContexts
Typ: System.Guid%
- dwUIElementType
Typ: System.UInt32
Zabezpečení rozhraní .NET Framework
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.