- 博客(4)
- 收藏
- 关注
原创 Invoke vs BeginInvoke
Control的Invoke和BeginInvoke: Control.Invoke 方法 (Delegate) :在拥有此控件的基础窗口句柄的线程(UI thread)上执行指定的委托。 Control.BeginInvoke 方法 (Delegate) :在创建控件的基础句柄所在线程(UI thread)上异步执行指定委托。 Control的Invoke和BeginInvoke的参数
2012-11-12 18:44:36 679
原创 Check if the name and password are correct for domain
PrincipalContext context = new PrincipalContext(ContextType.Domain); bool isValid = context.ValidateCredentials(userName, password);
2012-11-12 16:58:17 791
原创 How to find exchange server users
How to find exchange server users? DirectoryEntry entry = new DirectoryEntry(_ldap, userName, password); // _ldap is domain such as "LDAP://xxx.xxx.com"; DirectorySearcher ds = ne
2012-11-12 16:54:27 432
原创 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 should invoke serve once (get a collecti
2012-11-12 11:53:35 451
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人