IVsToolbox.IsCurrentUser Method
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
'Declaration
Function IsCurrentUser ( _
pUser As IVsToolboxUser, _
<OutAttribute> ByRef pfCurrent As Integer _
) As Integer
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: 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: Int32
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.
.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.