Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Usage
Dim instance As IVsToolbox
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.
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.