Freigeben über


IVsToolbox.IsCurrentUser Method

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

'Declaration
Function IsCurrentUser ( _
    pUser As IVsToolboxUser, _
    <OutAttribute> ByRef pfCurrent As Integer _
) As Integer
'Usage
Dim instance As IVsToolbox
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.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox::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

IVsToolbox Interface

IVsToolbox Members

Microsoft.VisualStudio.Shell.Interop Namespace