Método WebSiteOperationsExtensions.DiscoverAsync
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
Assembly: Microsoft.WindowsAzure.Management.WebSites (em Microsoft.WindowsAzure.Management.WebSites.dll)
Uso
'Uso
Dim operations As IWebSiteOperations
Dim webSpaceName As String
Dim webSiteName As String
Dim restoreRequest As RestoreRequest
Dim returnValue As Task(Of WebSiteRestoreDiscoverResponse)
returnValue = WebSiteOperationsExtensions.DiscoverAsync(operations, webSpaceName, webSiteName, restoreRequest)
Sintaxe
'Declaração
<ExtensionAttribute> _
Public Shared Function DiscoverAsync ( _
operations As IWebSiteOperations, _
webSpaceName As String, _
webSiteName As String, _
restoreRequest As RestoreRequest _
) As Task(Of WebSiteRestoreDiscoverResponse)
[ExtensionAttribute]
public static Task<WebSiteRestoreDiscoverResponse> DiscoverAsync (
IWebSiteOperations operations,
string webSpaceName,
string webSiteName,
RestoreRequest restoreRequest
)
[ExtensionAttribute]
public:
static Task<WebSiteRestoreDiscoverResponse^>^ DiscoverAsync (
IWebSiteOperations^ operations,
String^ webSpaceName,
String^ webSiteName,
RestoreRequest^ restoreRequest
)
/** @attribute ExtensionAttribute() */
public static Task<WebSiteRestoreDiscoverResponse> DiscoverAsync (
IWebSiteOperations operations,
String webSpaceName,
String webSiteName,
RestoreRequest restoreRequest
)
ExtensionAttribute
public static function DiscoverAsync (
operations : IWebSiteOperations,
webSpaceName : String,
webSiteName : String,
restoreRequest : RestoreRequest
) : Task<WebSiteRestoreDiscoverResponse>
Parâmetros
- operations
Reference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
- webSpaceName
Required. The name of the web space.
- webSiteName
Required. The name of the web site.
- restoreRequest
Required. A restore request.
Valor de retorno
The information gathered about a backup storaged in a storage account.
Segurança de thread
Qualquer membro estático público (compartilhado no Visual Basic) desse tipo é thread-safe. Não há garantia de que qualquer membro de instância seja seguro para threads.
Plataformas
Plataformas de desenvolvimento
Windows Vista, Windows 7 e Windows Server 2008
Plataformas de destino
Consulte também
Referência
Classe WebSiteOperationsExtensions
Membros WebSiteOperationsExtensions
Namespace Microsoft.WindowsAzure