Database.Connected

True if the database is currently connected to a data source.

public bool Connected { get; }

See also:

Class Database