다음을 통해 공유


ContentDeploymentPath.GetVirtualServersInformation Method (String, ICredentials)

Uses the credentials provided to rRetrieves the virtual server names and URLs for the specified destination server farm.

Namespace:  Microsoft.SharePoint.Publishing.Administration
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Shared Function GetVirtualServersInformation ( _
    destinationAdminServerUrl As String, _
    credentials As ICredentials _
) As VirtualServerInformation()
'Usage
Dim destinationAdminServerUrl As String
Dim credentials As ICredentials
Dim returnValue As VirtualServerInformation()

returnValue = ContentDeploymentPath.GetVirtualServersInformation(destinationAdminServerUrl, _
    credentials)
public static VirtualServerInformation[] GetVirtualServersInformation(
    string destinationAdminServerUrl,
    ICredentials credentials
)

Parameters

  • 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 virtual server names and URLs for the destination server farm.

See Also

Reference

ContentDeploymentPath Class

ContentDeploymentPath Members

GetVirtualServersInformation Overload

Microsoft.SharePoint.Publishing.Administration Namespace