Metoda IVsProfferCommands2.AddCommandBar —
Ten interfejs API obsługuje infrastrukturę programu .NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie.
Microsoft tylko do użytku wewnętrznego.
Przestrzeń nazw: EnvDTE80
Zestaw: EnvDTE80 (w EnvDTE80.dll)
Składnia
'Deklaracja
Sub AddCommandBar ( _
pszCmdBarName As String, _
dwType As vsCommandBarType, _
pCmdBarParent As Object, _
dwIndex As UInteger, _
<OutAttribute> ByRef ppCmdBar As Object _
)
void AddCommandBar(
string pszCmdBarName,
vsCommandBarType dwType,
Object pCmdBarParent,
uint dwIndex,
out Object ppCmdBar
)
void AddCommandBar(
[InAttribute] String^ pszCmdBarName,
[InAttribute] vsCommandBarType dwType,
[InAttribute] Object^ pCmdBarParent,
[InAttribute] unsigned int dwIndex,
[OutAttribute] Object^% ppCmdBar
)
abstract AddCommandBar :
pszCmdBarName:string *
dwType:vsCommandBarType *
pCmdBarParent:Object *
dwIndex:uint32 *
ppCmdBar:Object byref -> unit
function AddCommandBar(
pszCmdBarName : String,
dwType : vsCommandBarType,
pCmdBarParent : Object,
dwIndex : uint,
ppCmdBar : Object
)
Parametry
pszCmdBarName
Typ: String
dwType
Typ: vsCommandBarType
pCmdBarParent
Typ: Object
dwIndex
Typ: UInt32
ppCmdBar
Typ: Object%
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Używanie bibliotek pochodzących z częściowo zaufanego kodu.