다음을 통해 공유


IVsToolbox3.GetIDOfTab Method

Retrieves the canonical ID for the given localized name of the Toolbox tab.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

‘선언
Function GetIDOfTab ( _
    lpszTabName As String, _
    <OutAttribute> ByRef pbstrTabID As String _
) As Integer
‘사용 방법
Dim instance As IVsToolbox3
Dim lpszTabName As String
Dim pbstrTabID As String
Dim returnValue As Integer

returnValue = instance.GetIDOfTab(lpszTabName, _
    pbstrTabID)
int GetIDOfTab(
    string lpszTabName,
    out string pbstrTabID
)
int GetIDOfTab(
    [InAttribute] String^ lpszTabName, 
    [OutAttribute] String^% pbstrTabID
)
abstract GetIDOfTab : 
        lpszTabName:string * 
        pbstrTabID:string byref -> int 
function GetIDOfTab(
    lpszTabName : String, 
    pbstrTabID : String
) : int

Parameters

  • lpszTabName
    Type: System.String
    [in] The localized name of the Toolbox tab.
  • pbstrTabID
    Type: System.String%
    [out] The locale-invariant ID of the Toolbox tab.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsToolbox3::GetIDOfTab(
   [in] LPCOLESTR lpszTabName,
   [out] BSTR *pbstrTabID
);

.NET Framework Security

See Also

Reference

IVsToolbox3 Interface

IVsToolbox3 Members

Microsoft.VisualStudio.Shell.Interop Namespace