Partager via


IVsToolbox2.IsCurrentUser Method (IVsToolboxUser, Int32%)

Determines whether the specified Toolbox user is the current user.

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

Syntax

'Déclaration
Function IsCurrentUser ( _
    pUser As IVsToolboxUser, _
    <OutAttribute> ByRef pfCurrent As Integer _
) As Integer
'Utilisation
Dim instance As IVsToolbox2
Dim pUser As IVsToolboxUser
Dim pfCurrent As Integer
Dim returnValue As Integer

returnValue = instance.IsCurrentUser(pUser, _
    pfCurrent)
int IsCurrentUser(
    IVsToolboxUser pUser,
    out int pfCurrent
)
int IsCurrentUser(
    IVsToolboxUser^ pUser, 
    [OutAttribute] int% pfCurrent
)
abstract IsCurrentUser : 
        pUser:IVsToolboxUser * 
        pfCurrent:int byref -> int 
function IsCurrentUser(
    pUser : IVsToolboxUser, 
    pfCurrent : int
) : int

Parameters

  • pfCurrent
    Type: System.Int32%
    [out, retval] If true, then the specified Toolbox user is the current user. If false, then the specified user is not the current Toolbox user.

Return Value

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

Implements

IVsToolbox.IsCurrentUser(IVsToolboxUser, Int32%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox2::IsCurrentUser(IVsToolboxUser *pUser, [out,retval] BOOL *pfCurrent);

The current user is typically the Toolbox user associated with the active document.

.NET Framework Security

See Also

Reference

IVsToolbox2 Interface

IVsToolbox2 Members

IsCurrentUser Overload

Microsoft.VisualStudio.Shell.Interop Namespace