IWebSiteOperations.DiscoverAsync Method (String, String, RestoreRequest, CancellationToken)
Scans a backup in a storage account and returns database information etc. Should be called before calling Restore to discover what parameters are needed for the restore operation.
Namespace: Microsoft.WindowsAzure.Management.WebSites
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
Task<WebSiteRestoreDiscoverResponse> DiscoverAsync(
string webSpaceName,
string webSiteName,
RestoreRequest restoreRequest,
CancellationToken cancellationToken
)
Task<WebSiteRestoreDiscoverResponse^>^ DiscoverAsync(
String^ webSpaceName,
String^ webSiteName,
RestoreRequest^ restoreRequest,
CancellationToken cancellationToken
)
abstract DiscoverAsync :
webSpaceName:string *
webSiteName:string *
restoreRequest:RestoreRequest *
cancellationToken:CancellationToken -> Task<WebSiteRestoreDiscoverResponse>
Function DiscoverAsync (
webSpaceName As String,
webSiteName As String,
restoreRequest As RestoreRequest,
cancellationToken As CancellationToken
) As Task(Of WebSiteRestoreDiscoverResponse)
Parameters
webSpaceName
Type: System.StringThe name of the web space.
webSiteName
Type: System.StringThe name of the web site.
restoreRequest
Type: Microsoft.WindowsAzure.Management.WebSites.Models.RestoreRequestA restore request.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<WebSiteRestoreDiscoverResponse>
The information gathered about a backup storaged in a storage account.
See Also
IWebSiteOperations Interface
Microsoft.WindowsAzure.Management.WebSites Namespace
Return to top