public SpConnection(string server, string username, string password, string domain) { listService = new Sp.Data.WS.Lists(); _server = server; if (username != null && password != null) { _credentials = new NetworkCredential(username, password, domain); } }
public SpConnection(string connString) { listService = new Sp.Data.WS.Lists(); //ConnectionString = connString; ParseConnectionString(connString); }