Used to dynamically modify the current windows user with the specified user
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Function Impersonate( _
ByVal identity As String _
) As Boolean |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Impersonation
Dim identity As String
Dim value As Boolean
value = instance.Impersonate(identity) |
Parameters
- identity
- This parameter should be the return value of function Identity.ToString() of a previously instantiated Identity object.
Return Value
True if success, false if failed
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also