Table of Contents

Class DatabaseResponse

Namespace
Microsoft.Azure.Cosmos
Assembly
Microsoft.Azure.Cosmos.Client.dll

The cosmos database response

public class DatabaseResponse : Response<DatabaseProperties>
Inheritance
DatabaseResponse
Inherited Members
Extension Methods

Constructors

DatabaseResponse()

Create a DatabaseResponse as a no-op for mock testing

protected DatabaseResponse()

Properties

ActivityId

public override string ActivityId { get; }

Property Value

string

Database

The reference to the cosmos database. This allows additional operations for the database and easier access to the container operations

public virtual Database Database { get; }

Property Value

Database

Diagnostics

public override CosmosDiagnostics Diagnostics { get; }

Property Value

CosmosDiagnostics

ETag

public override string ETag { get; }

Property Value

string

Headers

public override Headers Headers { get; }

Property Value

Headers

RequestCharge

public override double RequestCharge { get; }

Property Value

double

Resource

public override DatabaseProperties Resource { get; }

Property Value

DatabaseProperties

StatusCode

public override HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode

Operators

implicit operator Database(DatabaseResponse)

Get Database implicitly from DatabaseResponse

public static implicit operator Database(DatabaseResponse response)

Parameters

response DatabaseResponse

DatabaseResponse

Returns

Database