共用方式為


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)

Syntax

Public ReadOnly Property ContentDatabases As SPContentDatabaseCollection
    Get

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