خرید بک لینک

Vote count: 0

I'm trying to get the LastLogon from a user in the active directory but I have this code

 lblUseameDisplay.Text = "LastLogon : " + (DateTime.FromFileTime((long)rs.GetDirectoryEntry().Properties["lastLogon"][0])).ToString();

And I got an error, I also tried without long cast, without ToString() and with .Value.ToString() instead of [0]

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 27 خرداد 1395 ساعت: 3:05

صفحه بندی