DocumentClient コンストラクター

定義

オーバーロード

DocumentClient(Uri, IDictionary<String,String>, ConnectionPolicy, Nullable<ConsistencyLevel>)
古い.

指定した Azure Cosmos DB サービス エンドポイント、リソース トークンのディクショナリ、接続ポリシーを使用して、Microsoft.Azure.Documents.Client.DocumentClient クラスの新しいインスタンスを初期化します。

DocumentClient(Uri, IList<Permission>, ConnectionPolicy, Nullable<ConsistencyLevel>)

Azure Cosmos DB サービスの DocumentClient 指定された Azure Cosmos DB サービス エンドポイント、アクセス許可オブジェクトの一覧、接続ポリシーを使用して、 クラスの新しいインスタンスを初期化します。

DocumentClient(Uri, SecureString, ConnectionPolicy, Nullable<ConsistencyLevel>)

Azure Cosmos DB サービスの DocumentClient 指定した Azure Cosmos DB サービス エンドポイント、キー、接続ポリシーを使用して、 クラスの新しいインスタンスを初期化します。

DocumentClient(Uri, String, ConnectionPolicy, Nullable<ConsistencyLevel>)

指定したサービス エンドポイント、承認キー (またはリソース トークン) と Azure Cosmos DB サービスの接続ポリシーを使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

DocumentClient(Uri, SecureString, ConnectionPolicy, Nullable<ConsistencyLevel>, JsonSerializerSettings)
古い.

指定した Azure Cosmos DB サービス エンドポイント、キー、接続ポリシー、および Azure Cosmos DB サービスのカスタム JsonSerializerSettings を使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

DocumentClient(Uri, SecureString, JsonSerializerSettings, ConnectionPolicy, Nullable<ConsistencyLevel>)

指定した Azure Cosmos DB サービス エンドポイント、キー、接続ポリシー、および Azure Cosmos DB サービスのカスタム JsonSerializerSettings を使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

DocumentClient(Uri, String, ConnectionPolicy, Nullable<ConsistencyLevel>, JsonSerializerSettings)
古い.

指定したサービス エンドポイント、承認キー (またはリソース トークン)、接続ポリシー、および Azure Cosmos DB サービスのカスタム JsonSerializerSettings を使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

DocumentClient(Uri, String, JsonSerializerSettings, ConnectionPolicy, Nullable<ConsistencyLevel>)

指定したサービス エンドポイント、承認キー (またはリソース トークン)、接続ポリシー、および Azure Cosmos DB サービスのカスタム JsonSerializerSettings を使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

DocumentClient(Uri, String, HttpMessageHandler, ConnectionPolicy, Nullable<ConsistencyLevel>)

指定したサービス エンドポイント、承認キー (またはリソース トークン) と Azure Cosmos DB サービスの接続ポリシーを使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

DocumentClient(Uri, IDictionary<String,String>, ConnectionPolicy, Nullable<ConsistencyLevel>)

注意事項

Please use the constructor that takes a permission list or a resource token list.

指定した Azure Cosmos DB サービス エンドポイント、リソース トークンのディクショナリ、接続ポリシーを使用して、Microsoft.Azure.Documents.Client.DocumentClient クラスの新しいインスタンスを初期化します。

[System.Obsolete("Please use the constructor that takes a permission list or a resource token list.")]
public DocumentClient (Uri serviceEndpoint, System.Collections.Generic.IDictionary<string,string> resourceTokens, Microsoft.Azure.Documents.Client.ConnectionPolicy connectionPolicy = default, Microsoft.Azure.Documents.ConsistencyLevel? desiredConsistencyLevel = default);
[<System.Obsolete("Please use the constructor that takes a permission list or a resource token list.")>]
new Microsoft.Azure.Documents.Client.DocumentClient : Uri * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Documents.Client.ConnectionPolicy * Nullable<Microsoft.Azure.Documents.ConsistencyLevel> -> Microsoft.Azure.Documents.Client.DocumentClient
Public Sub New (serviceEndpoint As Uri, resourceTokens As IDictionary(Of String, String), Optional connectionPolicy As ConnectionPolicy = Nothing, Optional desiredConsistencyLevel As Nullable(Of ConsistencyLevel) = Nothing)

パラメーター

serviceEndpoint
Uri

クライアントの作成に使用するサービス エンドポイント。

resourceTokens
IDictionary<String,String>

リソース ID とリソース トークンのディクショナリ。

connectionPolicy
ConnectionPolicy

(省略可能)クライアントの接続ポリシー。

desiredConsistencyLevel
Nullable<ConsistencyLevel>

(省略可能)クライアント操作の既定の整合性ポリシー。

属性

注釈

可能な限り直接接続を使用することをお勧めします

こちらもご覧ください

適用対象

DocumentClient(Uri, IList<Permission>, ConnectionPolicy, Nullable<ConsistencyLevel>)

Azure Cosmos DB サービスの DocumentClient 指定された Azure Cosmos DB サービス エンドポイント、アクセス許可オブジェクトの一覧、接続ポリシーを使用して、 クラスの新しいインスタンスを初期化します。

public DocumentClient (Uri serviceEndpoint, System.Collections.Generic.IList<Microsoft.Azure.Documents.Permission> permissionFeed, Microsoft.Azure.Documents.Client.ConnectionPolicy connectionPolicy = default, Microsoft.Azure.Documents.ConsistencyLevel? desiredConsistencyLevel = default);
new Microsoft.Azure.Documents.Client.DocumentClient : Uri * System.Collections.Generic.IList<Microsoft.Azure.Documents.Permission> * Microsoft.Azure.Documents.Client.ConnectionPolicy * Nullable<Microsoft.Azure.Documents.ConsistencyLevel> -> Microsoft.Azure.Documents.Client.DocumentClient
Public Sub New (serviceEndpoint As Uri, permissionFeed As IList(Of Permission), Optional connectionPolicy As ConnectionPolicy = Nothing, Optional desiredConsistencyLevel As Nullable(Of ConsistencyLevel) = Nothing)

パラメーター

serviceEndpoint
Uri

クライアントの作成に使用するサービス エンドポイント。

permissionFeed
IList<Permission>

クライアントの作成に使用する Permission オブジェクトの一覧。

connectionPolicy
ConnectionPolicy

(省略可能) ConnectionPolicy この接続に使用する 。

desiredConsistencyLevel
Nullable<ConsistencyLevel>

(省略可能)クライアント操作の既定の整合性ポリシー。

例外

が指定されていない場合 permissionFeed

が有効なアクセス許可リンクでない場合 permissionFeed

注釈

が指定されていない connectionPolicy 場合は、既定値 ConnectionPolicy が使用されます。 可能な限り直接接続を使用することをお勧めします。

こちらもご覧ください

適用対象

DocumentClient(Uri, SecureString, ConnectionPolicy, Nullable<ConsistencyLevel>)

Azure Cosmos DB サービスの DocumentClient 指定した Azure Cosmos DB サービス エンドポイント、キー、接続ポリシーを使用して、 クラスの新しいインスタンスを初期化します。

public DocumentClient (Uri serviceEndpoint, System.Security.SecureString authKey, Microsoft.Azure.Documents.Client.ConnectionPolicy connectionPolicy = default, Microsoft.Azure.Documents.ConsistencyLevel? desiredConsistencyLevel = default);
new Microsoft.Azure.Documents.Client.DocumentClient : Uri * System.Security.SecureString * Microsoft.Azure.Documents.Client.ConnectionPolicy * Nullable<Microsoft.Azure.Documents.ConsistencyLevel> -> Microsoft.Azure.Documents.Client.DocumentClient
Public Sub New (serviceEndpoint As Uri, authKey As SecureString, Optional connectionPolicy As ConnectionPolicy = Nothing, Optional desiredConsistencyLevel As Nullable(Of ConsistencyLevel) = Nothing)

パラメーター

serviceEndpoint
Uri

クライアントの作成に使用するサービス エンドポイント。

authKey
SecureString

クライアントの作成に使用する Permission オブジェクトの一覧。

connectionPolicy
ConnectionPolicy

(省略可能)クライアントの接続ポリシー。 何も渡されない場合は、既定値が使用されます ConnectionPolicy

desiredConsistencyLevel
Nullable<ConsistencyLevel>

(省略可能)これは、読み取り操作のデータベース アカウントの整合性レベルを弱めるために使用できます。 これが設定されていない場合、データベース アカウントの整合性レベルはすべての要求に使用されます。

注釈

サービス エンドポイントと承認キーは、Azure 管理ポータルから取得できます。 ここで使用する authKey は、使用中のプライバシーのために暗号化され、不要になったときにコンピューター メモリから削除されます

可能な限り直接接続を使用することをお勧めします

こちらもご覧ください

適用対象

DocumentClient(Uri, String, ConnectionPolicy, Nullable<ConsistencyLevel>)

指定したサービス エンドポイント、承認キー (またはリソース トークン) と Azure Cosmos DB サービスの接続ポリシーを使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

public DocumentClient (Uri serviceEndpoint, string authKeyOrResourceToken, Microsoft.Azure.Documents.Client.ConnectionPolicy connectionPolicy = default, Microsoft.Azure.Documents.ConsistencyLevel? desiredConsistencyLevel = default);
new Microsoft.Azure.Documents.Client.DocumentClient : Uri * string * Microsoft.Azure.Documents.Client.ConnectionPolicy * Nullable<Microsoft.Azure.Documents.ConsistencyLevel> -> Microsoft.Azure.Documents.Client.DocumentClient
Public Sub New (serviceEndpoint As Uri, authKeyOrResourceToken As String, Optional connectionPolicy As ConnectionPolicy = Nothing, Optional desiredConsistencyLevel As Nullable(Of ConsistencyLevel) = Nothing)

パラメーター

serviceEndpoint
Uri

クライアントの作成に使用するサービス エンドポイント。

authKeyOrResourceToken
String

クライアントの作成に使用する承認キーまたはリソース トークン。

connectionPolicy
ConnectionPolicy

(省略可能)クライアントの接続ポリシー。

desiredConsistencyLevel
Nullable<ConsistencyLevel>

(省略可能)クライアント操作の既定の整合性ポリシー。

注釈

サービス エンドポイントは、Azure 管理ポータルから取得できます。 いずれかのマスター キーを使用して接続している場合、これらは Azure 管理ポータルからエンドポイントと共に取得できます。ただし、特定の Azure Cosmos DB ユーザーとして接続している場合、渡される値はユーザーのアクセス許可フィードから取得された authKeyOrResourceToken ResourceToken です。

可能な限り直接接続を使用することをお勧めします。

こちらもご覧ください

適用対象

DocumentClient(Uri, SecureString, ConnectionPolicy, Nullable<ConsistencyLevel>, JsonSerializerSettings)

注意事項

Please use the constructor that takes JsonSerializerSettings as the third parameter.

指定した Azure Cosmos DB サービス エンドポイント、キー、接続ポリシー、および Azure Cosmos DB サービスのカスタム JsonSerializerSettings を使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

[System.Obsolete("Please use the constructor that takes JsonSerializerSettings as the third parameter.")]
public DocumentClient (Uri serviceEndpoint, System.Security.SecureString authKey, Microsoft.Azure.Documents.Client.ConnectionPolicy connectionPolicy, Microsoft.Azure.Documents.ConsistencyLevel? desiredConsistencyLevel, Newtonsoft.Json.JsonSerializerSettings serializerSettings);
[<System.Obsolete("Please use the constructor that takes JsonSerializerSettings as the third parameter.")>]
new Microsoft.Azure.Documents.Client.DocumentClient : Uri * System.Security.SecureString * Microsoft.Azure.Documents.Client.ConnectionPolicy * Nullable<Microsoft.Azure.Documents.ConsistencyLevel> * Newtonsoft.Json.JsonSerializerSettings -> Microsoft.Azure.Documents.Client.DocumentClient
Public Sub New (serviceEndpoint As Uri, authKey As SecureString, connectionPolicy As ConnectionPolicy, desiredConsistencyLevel As Nullable(Of ConsistencyLevel), serializerSettings As JsonSerializerSettings)

パラメーター

serviceEndpoint
Uri

クライアントの作成に使用するサービス エンドポイント。

authKey
SecureString

クライアントの作成に使用する Permission オブジェクトの一覧。

connectionPolicy
ConnectionPolicy

クライアントの接続ポリシー。

desiredConsistencyLevel
Nullable<ConsistencyLevel>

これは、読み取り操作のデータベース アカウントの整合性レベルを弱めるために使用できます。 これが設定されていない場合、データベース アカウントの整合性レベルはすべての要求に使用されます。

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

シリアル化/カスタマイズに使用するカスタム JsonSerializer 設定。

属性

注釈

サービス エンドポイントと承認キーは、Azure 管理ポータルから取得できます。 ここで使用する authKey は、使用中のプライバシーのために暗号化され、不要になったときにコンピューター メモリから削除されます

可能な限り直接接続を使用することをお勧めします

こちらもご覧ください

適用対象

DocumentClient(Uri, SecureString, JsonSerializerSettings, ConnectionPolicy, Nullable<ConsistencyLevel>)

指定した Azure Cosmos DB サービス エンドポイント、キー、接続ポリシー、および Azure Cosmos DB サービスのカスタム JsonSerializerSettings を使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

public DocumentClient (Uri serviceEndpoint, System.Security.SecureString authKey, Newtonsoft.Json.JsonSerializerSettings serializerSettings, Microsoft.Azure.Documents.Client.ConnectionPolicy connectionPolicy = default, Microsoft.Azure.Documents.ConsistencyLevel? desiredConsistencyLevel = default);
new Microsoft.Azure.Documents.Client.DocumentClient : Uri * System.Security.SecureString * Newtonsoft.Json.JsonSerializerSettings * Microsoft.Azure.Documents.Client.ConnectionPolicy * Nullable<Microsoft.Azure.Documents.ConsistencyLevel> -> Microsoft.Azure.Documents.Client.DocumentClient
Public Sub New (serviceEndpoint As Uri, authKey As SecureString, serializerSettings As JsonSerializerSettings, Optional connectionPolicy As ConnectionPolicy = Nothing, Optional desiredConsistencyLevel As Nullable(Of ConsistencyLevel) = Nothing)

パラメーター

serviceEndpoint
Uri

クライアントの作成に使用するサービス エンドポイント。

authKey
SecureString

クライアントの作成に使用する Permission オブジェクトの一覧。

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

シリアル化/カスタマイズに使用するカスタム JsonSerializer 設定。

connectionPolicy
ConnectionPolicy

(省略可能)クライアントの接続ポリシー。 何も渡されない場合は、既定値が使用されます ConnectionPolicy

desiredConsistencyLevel
Nullable<ConsistencyLevel>

(省略可能)これは、読み取り操作のデータベース アカウントの整合性レベルを弱めるために使用できます。 これが設定されていない場合、データベース アカウントの整合性レベルはすべての要求に使用されます。

注釈

サービス エンドポイントと承認キーは、Azure 管理ポータルから取得できます。 ここで使用する authKey は、使用中のプライバシーのために暗号化され、不要になったときにコンピューター メモリから削除されます

可能な限り直接接続を使用することをお勧めします

こちらもご覧ください

適用対象

DocumentClient(Uri, String, ConnectionPolicy, Nullable<ConsistencyLevel>, JsonSerializerSettings)

注意事項

Please use the constructor that takes JsonSerializerSettings as the third parameter.

指定したサービス エンドポイント、承認キー (またはリソース トークン)、接続ポリシー、および Azure Cosmos DB サービスのカスタム JsonSerializerSettings を使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

[System.Obsolete("Please use the constructor that takes JsonSerializerSettings as the third parameter.")]
public DocumentClient (Uri serviceEndpoint, string authKeyOrResourceToken, Microsoft.Azure.Documents.Client.ConnectionPolicy connectionPolicy, Microsoft.Azure.Documents.ConsistencyLevel? desiredConsistencyLevel, Newtonsoft.Json.JsonSerializerSettings serializerSettings);
[<System.Obsolete("Please use the constructor that takes JsonSerializerSettings as the third parameter.")>]
new Microsoft.Azure.Documents.Client.DocumentClient : Uri * string * Microsoft.Azure.Documents.Client.ConnectionPolicy * Nullable<Microsoft.Azure.Documents.ConsistencyLevel> * Newtonsoft.Json.JsonSerializerSettings -> Microsoft.Azure.Documents.Client.DocumentClient
Public Sub New (serviceEndpoint As Uri, authKeyOrResourceToken As String, connectionPolicy As ConnectionPolicy, desiredConsistencyLevel As Nullable(Of ConsistencyLevel), serializerSettings As JsonSerializerSettings)

パラメーター

serviceEndpoint
Uri

クライアントの作成に使用するサービス エンドポイント。

authKeyOrResourceToken
String

クライアントの作成に使用する承認キーまたはリソース トークン。

connectionPolicy
ConnectionPolicy

クライアントの接続ポリシー。

desiredConsistencyLevel
Nullable<ConsistencyLevel>

クライアント操作の既定の整合性ポリシー。

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

シリアル化/カスタマイズに使用するカスタム JsonSerializer 設定。

属性

注釈

サービス エンドポイントは、Azure 管理ポータルから取得できます。 いずれかのマスター キーを使用して接続している場合、これらは Azure 管理ポータルからエンドポイントと共に取得できます。ただし、特定の Azure Cosmos DB ユーザーとして接続している場合、渡される値はユーザーのアクセス許可フィードから取得された authKeyOrResourceToken ResourceToken です。

可能な限り直接接続を使用することをお勧めします。

こちらもご覧ください

適用対象

DocumentClient(Uri, String, JsonSerializerSettings, ConnectionPolicy, Nullable<ConsistencyLevel>)

指定したサービス エンドポイント、承認キー (またはリソース トークン)、接続ポリシー、および Azure Cosmos DB サービスのカスタム JsonSerializerSettings を使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

public DocumentClient (Uri serviceEndpoint, string authKeyOrResourceToken, Newtonsoft.Json.JsonSerializerSettings serializerSettings, Microsoft.Azure.Documents.Client.ConnectionPolicy connectionPolicy = default, Microsoft.Azure.Documents.ConsistencyLevel? desiredConsistencyLevel = default);
new Microsoft.Azure.Documents.Client.DocumentClient : Uri * string * Newtonsoft.Json.JsonSerializerSettings * Microsoft.Azure.Documents.Client.ConnectionPolicy * Nullable<Microsoft.Azure.Documents.ConsistencyLevel> -> Microsoft.Azure.Documents.Client.DocumentClient
Public Sub New (serviceEndpoint As Uri, authKeyOrResourceToken As String, serializerSettings As JsonSerializerSettings, Optional connectionPolicy As ConnectionPolicy = Nothing, Optional desiredConsistencyLevel As Nullable(Of ConsistencyLevel) = Nothing)

パラメーター

serviceEndpoint
Uri

クライアントの作成に使用するサービス エンドポイント。

authKeyOrResourceToken
String

クライアントの作成に使用する承認キーまたはリソース トークン。

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

シリアル化/カスタマイズに使用するカスタム JsonSerializer 設定。

connectionPolicy
ConnectionPolicy

(省略可能)クライアントの接続ポリシー。

desiredConsistencyLevel
Nullable<ConsistencyLevel>

(省略可能)クライアント操作の既定の整合性ポリシー。

注釈

サービス エンドポイントは、Azure 管理ポータルから取得できます。 いずれかのマスター キーを使用して接続している場合、これらは Azure 管理ポータルからエンドポイントと共に取得できます。ただし、特定の Azure Cosmos DB ユーザーとして接続している場合、渡される値はユーザーのアクセス許可フィードから取得された authKeyOrResourceToken ResourceToken です。

可能な限り直接接続を使用することをお勧めします。

こちらもご覧ください

適用対象

DocumentClient(Uri, String, HttpMessageHandler, ConnectionPolicy, Nullable<ConsistencyLevel>)

指定したサービス エンドポイント、承認キー (またはリソース トークン) と Azure Cosmos DB サービスの接続ポリシーを使用して、 クラスの新しいインスタンス DocumentClient を初期化します。

public DocumentClient (Uri serviceEndpoint, string authKeyOrResourceToken, System.Net.Http.HttpMessageHandler handler, Microsoft.Azure.Documents.Client.ConnectionPolicy connectionPolicy = default, Microsoft.Azure.Documents.ConsistencyLevel? desiredConsistencyLevel = default);
new Microsoft.Azure.Documents.Client.DocumentClient : Uri * string * System.Net.Http.HttpMessageHandler * Microsoft.Azure.Documents.Client.ConnectionPolicy * Nullable<Microsoft.Azure.Documents.ConsistencyLevel> -> Microsoft.Azure.Documents.Client.DocumentClient
Public Sub New (serviceEndpoint As Uri, authKeyOrResourceToken As String, handler As HttpMessageHandler, Optional connectionPolicy As ConnectionPolicy = Nothing, Optional desiredConsistencyLevel As Nullable(Of ConsistencyLevel) = Nothing)

パラメーター

serviceEndpoint
Uri

クライアントの作成に使用するサービス エンドポイント。

authKeyOrResourceToken
String

クライアントの作成に使用する承認キーまたはリソース トークン。

handler
HttpMessageHandler

要求の送信に使用する HTTP ハンドラー スタック (HttpClientHandler など)。

connectionPolicy
ConnectionPolicy

(省略可能)クライアントの接続ポリシー。

desiredConsistencyLevel
Nullable<ConsistencyLevel>

(省略可能)クライアント操作の既定の整合性ポリシー。

注釈

サービス エンドポイントは、Azure 管理ポータルから取得できます。 いずれかのマスター キーを使用して接続している場合、これらは Azure 管理ポータルからエンドポイントと共に取得できます。ただし、特定の Azure Cosmos DB ユーザーとして接続している場合、渡される値はユーザーのアクセス許可フィードから取得された authKeyOrResourceToken ResourceToken です。

可能な限り直接接続を使用することをお勧めします。

こちらもご覧ください

適用対象