SugarConnection Constructor(String)
Initializes a new instance of the
SugarConnection class when given a string containing the connection string.
The following example creates and opens a
SugarConnection.
public void CreateSugarConnection()
{
string myConnString =
"server=https://your_company.sugaropencloud.eu;user id=admin;password=AmFFA4ZryM;";
SugarConnection sugarConnection = new SugarConnection(myConnString);
sugarConnection.Open();
//Do something
sugarConnection.Close();
}
Public Sub CreateSugarConnection()
Dim myConnString As String = _
"server=https://your_company.sugaropencloud.eu;user id=admin;password=AmFFA4ZryM;"
Dim sugarConnection As New SugarConnection(myConnString)
sugarConnection.Open()
'Do something
sugarConnection.Close()
End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2