IVsToolbox3.GetGeneralTabID Method
Gets the ID for the General tab.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function GetGeneralTabID ( _
<OutAttribute> ByRef pbstrTabID As String _
) As Integer
'用途
Dim instance As IVsToolbox3
Dim pbstrTabID As String
Dim returnValue As Integer
returnValue = instance.GetGeneralTabID(pbstrTabID)
int GetGeneralTabID(
out string pbstrTabID
)
int GetGeneralTabID(
[OutAttribute] String^% pbstrTabID
)
abstract GetGeneralTabID :
pbstrTabID:string byref -> int
function GetGeneralTabID(
pbstrTabID : String
) : int
Parameters
- 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
GetGeneralTabID returns the unique ID of the General tab, so packages can select that tab without having to hard-code the ID or attempt to look it up in a resource table.
COM Signature
From vsshell80.idl:
HRESULT GetGeneralTabID(
[out] BSTR* pbstrTabID
);
.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.