WebSiteOperationsExtensions.RestoreAsync Method (IWebSiteOperations, String, String, RestoreRequest)
Restores a site to either a new site or existing site (Overwrite flag has to be set to true for that).
Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
public static Task<WebSiteRestoreResponse> RestoreAsync(
this IWebSiteOperations operations,
string webSpaceName,
string webSiteName,
RestoreRequest restoreRequest
)
public:
[ExtensionAttribute]
static Task<WebSiteRestoreResponse^>^ RestoreAsync(
IWebSiteOperations^ operations,
String^ webSpaceName,
String^ webSiteName,
RestoreRequest^ restoreRequest
)
static member RestoreAsync :
operations:IWebSiteOperations *
webSpaceName:string *
webSiteName:string *
restoreRequest:RestoreRequest -> Task<WebSiteRestoreResponse>
<ExtensionAttribute>
Public Shared Function RestoreAsync (
operations As IWebSiteOperations,
webSpaceName As String,
webSiteName As String,
restoreRequest As RestoreRequest
) As Task(Of WebSiteRestoreResponse)
Parameters
operations
Type: Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperationsReference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
webSpaceName
Type: System.StringRequired. The name of the web space.
webSiteName
Type: System.StringRequired. The name of the web site.
restoreRequest
Type: Microsoft.WindowsAzure.Management.WebSites.Models.RestoreRequestRequired. A restore request.
Return Value
Type: System.Threading.Tasks.Task<WebSiteRestoreResponse>
Restore operation information.
See Also
WebSiteOperationsExtensions Class
Microsoft.WindowsAzure Namespace
Return to top