SPContentDatabase.IsAttachedToFarm property

Gets a value that indicates whether the content database is attached to the farm.

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

Syntax

'Declaration
Public ReadOnly Property IsAttachedToFarm As Boolean
    Get
'Usage
Dim instance As SPContentDatabase
Dim value As Boolean

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

Property value

Type: System.Boolean
true if the database is attached; otherwise false.

Remarks

The IsAttachedToFarm property is false if, and only if, the SPContentDatabase object was created by a call of the CreateUnattachedContentDatabase() method.

See also

Reference

SPContentDatabase class

SPContentDatabase members

Microsoft.SharePoint.Administration namespace