IVsProfferCommands.AddNamedCommand Yöntem
Bu API, .NET Framework altyapısını destekler ve doğrudan kodunuzdan kullanılmaya yönelik değildir.
Microsoft yalnızca iç kullanım.
Ad alanı: EnvDTE
Derleme: EnvDTE (EnvDTE.dll içinde)
Sözdizimi
'Bildirim
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
)
Parametreler
pguidPackage
Tür: Guid%Paket GUID.
pguidCmdGroup
Tür: Guid%Komut grubu iliºkin GUID.
pszCmdNameCanonical
Tür: StringKomutun adı.
pdwCmdId
Tür: UInt32%Komutu komut kimliği.
pszCmdNameLocalized
Tür: StringKomutun yerelleştirilmiş ad.
pszBtnText
Tür: StringDüğme metni.
pszCmdTooltip
Tür: StringAraç İpucu komutu hakkında bilgi.
pszSatelliteDLL
Tür: StringUydu derleme adı.
dwBitmapResourceId
Tür: UInt32Bitmap kaynak kimliği
dwBitmapImageIndex
Tür: UInt32Bitmap kaynak dizini.
dwCmdFlagsDefault
Tür: UInt32Varsayılan bayrak.
cUIContexts
Tür: UInt32UI içerikleri.
rgguidUIContexts
Tür: Guid%UI bağlamları iliºkin GUID.
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen Güvenilen Koddan Kitaplıkları Kullanma.