DocumentClient.ReplaceDatabaseAsync Method

Replaces a database as an asynchronous operation.

Namespace: Microsoft.Azure.Documents.Client
Assembly: Microsoft.Azure.Documents.Client (in Microsoft.Azure.Documents.Client.dll)

Usage

'Usage
Dim instance As DocumentClient
Dim database As Database
Dim options As RequestOptions
Dim returnValue As Task(Of ResourceResponse(Of Database))

returnValue = instance.ReplaceDatabaseAsync(database, options)

Syntax

'Declaration
Public Function ReplaceDatabaseAsync ( _
    database As Database, _
    <OptionalAttribute> Optional options As RequestOptions = Nothing _
) As Task(Of ResourceResponse(Of Database))
public Task<ResourceResponse<Database>> ReplaceDatabaseAsync (
    Database database,
    [OptionalAttribute] RequestOptions options
)
public:
Task<ResourceResponse<Database^>^>^ ReplaceDatabaseAsync (
    Database^ database, 
    [OptionalAttribute] RequestOptions^ options
)
public Task<ResourceResponse<Database>> ReplaceDatabaseAsync (
    Database database, 
    /** @attribute OptionalAttribute() */ RequestOptions options
)
public function ReplaceDatabaseAsync (
    database : Database, 
    options : RequestOptions
) : Task<ResourceResponse<Database>>

Parameters

  • database
    The updated database.
  • options
    The request options for the request.

Return Value

The task object representing the service response for the asynchronous operation.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

DocumentClient Class
DocumentClient Members
Microsoft.Azure.Documents.Client Namespace