SPSiteLookupProvider.GetSiteNames method (SPContentDatabase)
Returns a list of all the names of site collections in the specified content database.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public MustOverride Function GetSiteNames ( _
database As SPContentDatabase _
) As IList(Of String)
'Usage
Dim instance As SPSiteLookupProvider
Dim database As SPContentDatabase
Dim returnValue As IList(Of String)
returnValue = instance.GetSiteNames(database)
public abstract IList<string> GetSiteNames(
SPContentDatabase database
)
Parameters
database
Type: Microsoft.SharePoint.Administration.SPContentDatabaseThe content database.
Return value
Type: System.Collections.Generic.IList<String>
IList<T>
The list of site collection names.