IVsProfferCommands3.AddCommandBar Method
Adds a command bar to the user interface.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function AddCommandBar ( _
pszCmdBarName As String, _
dwType As UInteger, _
pCmdBarParent As Object, _
dwIndex As UInteger, _
<OutAttribute> ByRef ppCmdBar As Object _
) As Integer
int AddCommandBar(
string pszCmdBarName,
uint dwType,
Object pCmdBarParent,
uint dwIndex,
out Object ppCmdBar
)
int AddCommandBar(
[InAttribute] String^ pszCmdBarName,
[InAttribute] unsigned int dwType,
[InAttribute] Object^ pCmdBarParent,
[InAttribute] unsigned int dwIndex,
[OutAttribute] Object^% ppCmdBar
)
abstract AddCommandBar :
pszCmdBarName:string *
dwType:uint32 *
pCmdBarParent:Object *
dwIndex:uint32 *
ppCmdBar:Object byref -> int
function AddCommandBar(
pszCmdBarName : String,
dwType : uint,
pCmdBarParent : Object,
dwIndex : uint,
ppCmdBar : Object
) : int
Parameters
pszCmdBarName
Type: String[in] The name of the command bar.
dwType
Type: UInt32[in] A value from the vsCommandBarType enumeration.
pCmdBarParent
Type: Object[in] The parent of the command bar. Use nulla null reference (Nothing in Visual Basic) for a top-level command bar.
dwIndex
Type: UInt32[in] Location (index) in which to insert the new command bar on the parent.
ppCmdBar
Type: Object%[out] The new command bar.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.