Share via


Restore(String, System.Uri, String, String, String, String, String, String) Method

The Restore method of the PortalSite class restores the specified portal site using the supplied URL, virtual server, and database names.

Parameters

portalUrl   The URL of the portal site.

virtualServerUri   The name of the virtual server that hosts the portal site.

siteDatabaseServer   The name of the site database server associated with the specified portal site.

siteDatabaseName   The name of the site database associated with the specified portal site.

profileDatabaseServer   The name of the profile database server associated with the specified portal site.

profileDatabaseName   The name of the profile database associated with the specified portal site.

serviceDatabaseServer   The name of the component settings database server associated with the specified portal site.

serviceDatabaseName   The name of the component settings database associated with the specified portal site.

Return Value

The restored Microsoft.SharePoint.Portal.Topology.PortalSite.

Exceptions

The Restore method can throw the following exceptions. All of the exceptions listed below are defined in the Microsoft.SharePoint.Portal.Install namespace. Note that the Restore method is not limited to only these exceptions.

Exception
DatabaseServiceException
InvalidUriSchemeException
LowDiskSpaceException
TopologyNotSupportedException
JobServerNotFoundException
IndexServiceNotActiveException
MaxPortalSitesException
FPExtensionsEnabledException
DuplicateDirectoryException

Remarks

After calling the Restore method, you must set the Status property of the PortalSite to "online" and call the Commit method to persist this change.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security