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)
Syntax
'Déclaration
Function IsCurrentUser ( _
pUser As IVsToolboxUser, _
<OutAttribute> ByRef pfCurrent As Integer _
) As Integer
'Utilisation
Dim instance As IVsToolbox2
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
- 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.
Implements
IVsToolbox.IsCurrentUser(IVsToolboxUser, Int32%)
Remarks
COM Signature
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.