Share via


IVsToolbox.IsCurrentUser(IVsToolboxUser, Int32) Method

Definition

Determines whether the specified Toolbox user is the current user.

public:
 int IsCurrentUser(Microsoft::VisualStudio::Shell::Interop::IVsToolboxUser ^ pUser, [Runtime::InteropServices::Out] int % pfCurrent);
int IsCurrentUser(Microsoft::VisualStudio::Shell::Interop::IVsToolboxUser const & pUser, [Runtime::InteropServices::Out] int & pfCurrent);
public int IsCurrentUser (Microsoft.VisualStudio.Shell.Interop.IVsToolboxUser pUser, out int pfCurrent);
abstract member IsCurrentUser : Microsoft.VisualStudio.Shell.Interop.IVsToolboxUser * int -> int
Public Function IsCurrentUser (pUser As IVsToolboxUser, ByRef pfCurrent As Integer) As Integer

Parameters

pUser
IVsToolboxUser

[in] Pointer to the Toolbox user.

pfCurrent
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.

Returns

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.

Applies to