Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.String
The URL for the virtual server on the destination server farm.
- destinationAdminServerUrl
Type: System.String
The URL for the destination administration server.
- credentials
Type: System.Net.ICredentials
The 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.