ESRI.ArcGIS.ADF.Web.DataSources
Identity Property
See Also  Example
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;}

Return 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.

See Also

© 2010 All Rights Reserved.