摘要:
直接上代码,我解释很清楚了:SPListService.Lists listService = new SPListService.Lists(); /*凭据用默认即可*/ listService.Credentials = System.Net.CredentialCache.DefaultCredentials; /*记住,虽然你引用的web引用路径是子网站,但是,实例化出来的Lists的URL还是主网站,别忘记*/ listService.Url = "http://moss2010:1810/cim... 阅读全文