共用方式為


SPContentDatabase.IsAttachedToFarm property

取得一個值,指出是否要將內容資料庫附加至伺服器陣列。

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

Syntax

'宣告
Public ReadOnly Property IsAttachedToFarm As Boolean
    Get
'用途
Dim instance As SPContentDatabase
Dim value As Boolean

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

Property value

Type: System.Boolean
true如果附加資料庫 ;否則false。

備註

IsAttachedToFarm屬性是false如果,且只有, CreateUnattachedContentDatabase()方法的呼叫所建立SPContentDatabase物件。

請參閱

參照

SPContentDatabase class

SPContentDatabase members

Microsoft.SharePoint.Administration namespace