SPDatabase.Exists property

Gets a Boolean value that indicates whether the database exists.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property Exists As Boolean
    Get
'Usage
Dim instance As SPDatabase
Dim value As Boolean

value = instance.Exists
public bool Exists { get; }

Property value

Type: System.Boolean
true if the database exists; otherwise, false.

See also

Reference

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace