using (ClientContext context = new ClientContext("http://yourserver/")) {
context.Credentials = new NetworkCredential("user", "password", "domain");
List list = context.Web.Lists.GetByTitle("Some List");
context.ExecuteQuery();
// Some code
}
Credentials property
No comments:
Post a Comment