共用方式為


SPDatabaseServiceInstance.Databases Property

Gets the collection of databases that are used in the database service instance.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property Databases As SPDatabaseCollection
    Get
'Usage
Dim instance As SPDatabaseServiceInstance
Dim value As SPDatabaseCollection

value = instance.Databases
public SPDatabaseCollection Databases { get; }

Property Value

Type: Microsoft.SharePoint.Administration.SPDatabaseCollection
An SPDatabaseCollection object that represents the databases.

See Also

Reference

SPDatabaseServiceInstance Class

SPDatabaseServiceInstance Members

Microsoft.SharePoint.Administration Namespace