系统.__ ComObject [英] System.__ComObject

查看:67
本文介绍了系统.__ 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:


这篇关于系统.__ ComObject的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆