系统.__ ComObject
hi
hi : public static void Main() public static void Main() { DirectoryEntry de = new DirectoryEntry(" LDAP) ://192.168.1.100/cn=ab,cn = Users,dc = soheila,dc = org"); PropertyCollection pc = de.Properties; DirectoryEntry de = new DirectoryEntry( "LDAP://192.168.1.100/cn=a b, cn=Users, dc=soheila, dc=org"); PropertyCollection pc = de.Properties; foreach(pc.PropertyNames中的字符串propName) foreach(string propName in pc.PropertyNames) { foreach(de中的对象值)属性[propName]) foreach(object value in de.Properties[propName]) Console.WriteLine(" property = {0} value = {1}",propName,value); Console.WriteLine(" property = {0} value = {1}", propName, value); } } 它显示的一些属性值对是: some of the property value pair that it shows are: property = uSNCreated value = System .__ ComObject property = uSNCreated value = System.__ComObject property = uSNChanged value = System .__ ComObject property = uSNChanged value = System.__ComObject property = badPasswordTime value = System .__ ComObject property = badPasswordTime value = System.__ComObject property = lastLogoff value = System .__ ComObject property = lastLogoff value = System.__ComObject property = lastLogon value = System .__ ComObject property = lastLogon value = System.__ComObject property = pwdLastSet value = System .__ ComObject property = pwdLastSet value = System.__ComObject property = accountExpires property = accountExpires value = System .__ ComObject value = System.__ComObject property = nTSecurityDescriptor value = System .__ ComObject property = nTSecurityDescriptor value = System.__ComObject 我想知道它意味着什么以及如何使用"lastLogoff","lastLogon",,,,,属性? i want to know what does it means and how can i use the "lastLogoff","lastLogon",,,,,properties? rega rds ........ regards........ 谢谢。
好像这篇帖子很长,没有任何回复。经过几个小时的谷歌,我找到了解决方案。我在VB.NET中编写了一个函数,将System .__ ComObject转换为有效的Date Time。它基本上适用于badPasswordTime,uSNCreated等少数属性。您可以参考下面的函数:
Seem like this post kind of long without any reply. After few hours of google, I found a solution on that. I write myself a function in VB.NET to convert the System.__ComObject to valid Date Time. It basically for the few properties like badPasswordTime, uSNCreated and etc. You can refer below for the function: