次の方法で共有


CosmosClient.GetDatabase(String) メソッド

定義

データベースへのプロキシ参照を返します。

public virtual Azure.Cosmos.CosmosDatabase GetDatabase (string id);
abstract member GetDatabase : string -> Azure.Cosmos.CosmosDatabase
override this.GetDatabase : string -> Azure.Cosmos.CosmosDatabase
Public Overridable Function GetDatabase (id As String) As CosmosDatabase

パラメーター

id
String

Cosmos データベース ID

戻り値

Cosmos データベース プロキシ

Database db = cosmosClient.GetDatabase("myDatabaseId"];
DatabaseResponse response = await db.ReadAsync();

注釈

CosmosDatabase プロキシ参照は存在を保証しません。

適用対象