ESRI.ArcGIS.ADF
Impersonate(String,LogonSessionType) Method
See Also  Send comments on this topic.
ESRI.ArcGIS.ADF Namespace > Impersonation Class > Impersonate Method : Impersonate(String,LogonSessionType) Method




identity
This parameter should be the return value of function Identity.ToString() of a previously instantiated Identity object.
logonSessionType
The type of logon to perform.
Used to dynamically modify the current windows user with the specified user

Syntax

Visual Basic (Declaration) 
Public Overloads Function Impersonate( _
   ByVal identity As String, _
   ByVal logonSessionType As Impersonation.LogonSessionType _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Impersonation
Dim identity As String
Dim logonSessionType As Impersonation.LogonSessionType
Dim value As Boolean
 
value = instance.Impersonate(identity, logonSessionType)
C# 
public bool Impersonate( 
   string identity,
   Impersonation.LogonSessionType logonSessionType
)

Parameters

identity
This parameter should be the return value of function Identity.ToString() of a previously instantiated Identity object.
logonSessionType
The type of logon to perform.

Return Value

True if success, false if failed

See Also

© 2010 All Rights Reserved.