Compartilhar via


IVsToolbox2.AddTab(String) Method

Definition

Adds a new tab to the Toolbox.

public:
 int AddTab(System::String ^ lpszTab);
public:
 int AddTab(Platform::String ^ lpszTab);
int AddTab(std::wstring const & lpszTab);
public int AddTab (string lpszTab);
abstract member AddTab : string -> int
Public Function AddTab (lpszTab As String) As Integer

Parameters

lpszTab
String

[in] The localized name of the tab to add to the Toolbox. The localized name can be obtained from the invariant non-localized name by calling GetIDOfTab(String, String).

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox2::AddTab(  
   [in]LPCOLESTR lpszTab  
);  

Note

If you specify the name of a tab that has already been added, then this method returns E_FAIL.

Applies to