SPSiteCreationProvider.SelectContentDatabases Method
Select the set of content databases that can be used to create a site collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public MustOverride Function SelectContentDatabases ( _
creationParameters As SPSiteCreationParameters, _
contentDatabases As IEnumerable(Of SPContentDatabase) _
) As IEnumerable(Of SPContentDatabase)
'Usage
Dim instance As SPSiteCreationProvider
Dim creationParameters As SPSiteCreationParameters
Dim contentDatabases As IEnumerable(Of SPContentDatabase)
Dim returnValue As IEnumerable(Of SPContentDatabase)
returnValue = instance.SelectContentDatabases(creationParameters, _
contentDatabases)
public abstract IEnumerable<SPContentDatabase> SelectContentDatabases(
SPSiteCreationParameters creationParameters,
IEnumerable<SPContentDatabase> contentDatabases
)
Parameters
creationParameters
Type: Microsoft.SharePoint.Administration.SPSiteCreationParametersInformation about the new site collection being created.
contentDatabases
Type: System.Collections.Generic.IEnumerable<SPContentDatabase>The set of content databases that can be used to create the site.
Return Value
Type: System.Collections.Generic.IEnumerable<SPContentDatabase>
A IEnumerable<T> object.