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)

int IsCurrentUser(
	IVsToolboxUser^ pUser,
	[OutAttribute] int% pfCurrent
)

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::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Return to top
Show: