ContentDeploymentPath.GetSiteCollectionNames Method (String, String, ICredentials)
Uses the credentials that are provided to rRetrieves site collection names for the specified virtual server on the destination server farm.
Namespace: Microsoft.SharePoint.Publishing.Administration
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Function GetSiteCollectionNames ( _
virtualServerUrl As String, _
destinationAdminServerUrl As String, _
credentials As ICredentials _
) As String()
'Usage
Dim virtualServerUrl As String
Dim destinationAdminServerUrl As String
Dim credentials As ICredentials
Dim returnValue As String()
returnValue = ContentDeploymentPath.GetSiteCollectionNames(virtualServerUrl, _
destinationAdminServerUrl, credentials)
public static string[] GetSiteCollectionNames(
string virtualServerUrl,
string destinationAdminServerUrl,
ICredentials credentials
)
Parameters
virtualServerUrl
Type: System.StringThe URL for the virtual server on the destination server farm.
destinationAdminServerUrl
Type: System.StringThe URL for the destination administration server.
credentials
Type: System.Net.ICredentialsThe credentials that are required to access the destination administration server.
Return Value
Type: []
The site collection names for the specified virtual server on the destination server farm, based on the specified parameters.