DatabaseExists Method

DataContext.DatabaseExists Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Determines whether the associated database can be opened.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public bool DatabaseExists()

Return Value

Type: System.Boolean
true if the specified database can be opened; otherwise, false.

For information about using a local database in your Windows Phone application, see Local database for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft