共用方式為


SPDatabase.Exists property

取得 Boolean 值,指出資料庫是否存在。

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

Syntax

'宣告
Public ReadOnly Property Exists As Boolean
    Get
'用途
Dim instance As SPDatabase
Dim value As Boolean

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

Property value

Type: System.Boolean
true資料庫存在 ; 如果否則,請false。

請參閱

參照

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace