Quantcast
Channel: Software Communities : Popular Discussions - ActiveRoles
Viewing all articles
Browse latest Browse all 1277

Virtual Attributes and C#

$
0
0

I'm using Virtual Attributes from respectively an console app and a custom web page deployed on the AR Server - both coded in C#.

 

I can update the Virtual Attributes through the web page (bool and Generalized Date) and see the changes in the active roles console, simply by doing the following on a search resultset:

 

user.Properties["edsvaAttributeName"].Value = DateTime

.Now.ToString();

user.CommitChanges();

user.Close();



When i try to read the Attributes from my console app or web page, the value of the property is always NULL. I use the following syntax:



string displayValue = user.Properties["edsvaAttributeName"].Value.ToString();

 

Any help would be very much appreciated.

 

Thanks.


Viewing all articles
Browse latest Browse all 1277

Trending Articles