共用方式為


SPWebApplication.ContentDatabases Property

Gets a collection of content databases that are available to the Web application.

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

Syntax

'Declaration
Public ReadOnly Property ContentDatabases As SPContentDatabaseCollection
    Get
'Usage
Dim instance As SPWebApplication
Dim value As SPContentDatabaseCollection

value = instance.ContentDatabases
public SPContentDatabaseCollection ContentDatabases { get; }

Property Value

Type: Microsoft.SharePoint.Administration.SPContentDatabaseCollection
An SPContentDatabaseCollection object that represents the collection of content databases.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace