ESRI.ArcGIS.ADF.Core | |
Impersonate(String,LogonSessionType) Method | |
See Also Send Feedback |
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.
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 failedTarget 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