Partager via


IVsStatusbar.IsCurrentUser Method

Determines whether the specified user is the current user of the status bar.

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

Syntax

'Déclaration
Function IsCurrentUser ( _
    pUser As IVsStatusbarUser, _
    ByRef pfCurrent As Integer _
) As Integer
'Utilisation
Dim instance As IVsStatusbar
Dim pUser As IVsStatusbarUser
Dim pfCurrent As Integer
Dim returnValue As Integer

returnValue = instance.IsCurrentUser(pUser, _
    pfCurrent)
int IsCurrentUser(
    IVsStatusbarUser pUser,
    ref int pfCurrent
)
int IsCurrentUser(
    IVsStatusbarUser^ pUser, 
    int% pfCurrent
)
abstract IsCurrentUser : 
        pUser:IVsStatusbarUser * 
        pfCurrent:int byref -> int 
function IsCurrentUser(
    pUser : IVsStatusbarUser, 
    pfCurrent : int
) : int

Parameters

  • pfCurrent
    Type: System.Int32%
    [out] true if the user is current.

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 IVsStatusbar::IsCurrentUser(
   [in] IVsStatusbarUser *pUser,
   [out] BOOL *pfCurrent
);

.NET Framework Security

See Also

Reference

IVsStatusbar Interface

IVsStatusbar Members

Microsoft.VisualStudio.Shell.Interop Namespace