11 2012 档案
Invoke vs BeginInvoke
摘要:Control的Invoke和BeginInvoke:Control.Invoke方法(Delegate):在拥有此控件的基础窗口句柄的线程(UI thread)上执行指定的委托。Control.BeginInvoke方法(Delegate):在创建控件的基础句柄所在线程(UI thread)上异步...
阅读全文
Check if the name and password are correct for domain
摘要:PrincipalContext context = new PrincipalContext(ContextType.Domain); bool isValid = context.ValidateCredentials(userName, password);
阅读全文
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...
阅读全文
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...
阅读全文
浙公网安备 33010602011771号