11 2012 档案
Invoke vs BeginInvoke
摘要:Control的Invoke和BeginInvoke:Control.Invoke方法(Delegate):在拥有此控件的基础窗口句柄的线程(UI thread)上执行指定的委托。Control.BeginInvoke方法(Delegate):在创建控件的基础句柄所在线程(UI thread)上异步... 阅读全文
posted @ 2012-11-12 18:44 chuwachen 阅读(152) 评论(0) 推荐(0)
Check if the name and password are correct for domain
摘要:PrincipalContext context = new PrincipalContext(ContextType.Domain); bool isValid = context.ValidateCredentials(userName, password); 阅读全文
posted @ 2012-11-12 16:58 chuwachen 阅读(129) 评论(0) 推荐(0)
How to find exchange server users
摘要: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 阅读(90) 评论(0) 推荐(0)
Web service misc
摘要: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)