Share via


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.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.

See also

Reference

ContentDeploymentPath class

ContentDeploymentPath members

GetSiteCollectionNames overload

Microsoft.SharePoint.Publishing.Administration namespace