Sage.SData.Client.Core.SDataService.SDataService C# (CSharp) Method

SDataService() public method

Initialises a new instance of the SDataService class, initialized with a target url, user name and password.
public SDataService ( string url, string userName, string password ) : System
url string
userName string user name used for credentials
password string password for user
return System
        public SDataService(string url, string userName, string password)
        {
            _uri = url != null
                       ? new SDataUri(url)
                       : new SDataUri
                         {
                             Server = "sdata",
                             Product = "-",
                             Contract = "-",
                             CompanyDataset = "-"
                         };
            UserName = userName;
            Password = password;
            Timeout = 120000;
            UserAgent = "Sage";
        }

Same methods

SDataService::SDataService ( ) : System
SDataService::SDataService ( string url ) : System