摘要: Control的Invoke和BeginInvoke:Control.Invoke方法(Delegate):在拥有此控件的基础窗口句柄的线程(UI thread)上执行指定的委托。Control.BeginInvoke方法(Delegate):在创建控件的基础句柄所在线程(UI thread)上异步... 阅读全文
posted @ 2012-11-12 18:44 chuwachen 阅读(151) 评论(0) 推荐(0)
摘要: PrincipalContext context = new PrincipalContext(ContextType.Domain); bool isValid = context.ValidateCredentials(userName, password); 阅读全文
posted @ 2012-11-12 16:58 chuwachen 阅读(128) 评论(0) 推荐(0)
摘要: How to findexchange server users? DirectoryEntry entry = new DirectoryEntry(_ldap, userName, password); // _ldap is domain such as"LDAP://xxx.xxx.c... 阅读全文
posted @ 2012-11-12 16:54 chuwachen 阅读(88) 评论(0) 推荐(0)
摘要: If client invokes server in loop as follows, it will have bad performance.Client:foreach (){invoke server}In order to improve performance, client shou... 阅读全文
posted @ 2012-11-12 11:53 chuwachen 阅读(138) 评论(0) 推荐(0)