May 4, 2010
Active Directory Tip #4 – Get Large Integer (e.g. Account expires date)
Certain properties, like usnChanged or accountExpires, are in an IADsLargeInteger format. One way to read out the long representation of the value of such a property is by reflection. PLAIN TEXT C#: private static long ConvertLargeIntegerToLong(object largeInteger) { Type type = largeInteger.GetType(); int highPart = (int)type.InvokeMember("HighPart", BindingFlags.GetProperty, null, largeInteger, null); int [...]