IVsToolbox::IsCurrentUser Method (IVsToolboxUser^, Int32)
Visual Studio 2015
Determines whether the specified Toolbox user is the current user.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pUser
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsToolboxUser^
[in] Pointer to the Toolbox user.
- 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::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: