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