ESRI.ArcGIS.ADF.Web.DataSources
Identity Property
See Also  Example Send Feedback
ESRI.ArcGIS.ADF.Web.DataSources Namespace > IGISDataSource Interface : Identity Property




Identity of a user connecting to a GIS data source.

Syntax

Visual Basic (Declaration) 
Property Identity As String
Visual Basic (Usage)Copy Code
Dim instance As IGISDataSource
Dim value As String
 
instance.Identity = value
 
value = instance.Identity
C# 
string Identity {get; set;}

Property Value

Identity details as a String.

Example

The Web ADF included a few classes to generate a semi-secure string to store identity information. The following code shows how to generate a Base64 encoded string to keep the identity details from being stored in clear text.
C#Copy Code
string username = "user";
string password = "pass";
string domain = "mydomain";            
ESRI.ArcGIS.ADF.Identity id = new ESRI.ArcGIS.ADF.Identity(username, password, domain);
string encrypted_id = ESRI.ArcGIS.ADF.Converter.FromIdentity(id);

Remarks

Identity can be used to store user credentials required when connecting to a data source that requires authentication information.

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

© 2011 All Rights Reserved.