Disconnect()

View as Markdown

Definition

Disconnects from the data connection.

Syntax

\<connection\>.Disconnect()

Examples

1private void OnExecutionUpdate(object sender, ExecutionEventArgs e)
2{
3 // If an execution triggers after 9pm, disconnect from the account's data source
4 if (e.Time > new DateTime(now.Year, now.Month, now.Day, 21, 0, 0))
5 myAccount.Connection.Disconnect();
6}