CosmosDbPartitionedStorageOptions 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
Cosmos DB 分割儲存體選項。
public class CosmosDbPartitionedStorageOptions
type CosmosDbPartitionedStorageOptions = class
Public Class CosmosDbPartitionedStorageOptions
- 繼承
-
CosmosDbPartitionedStorageOptions
建構函式
CosmosDbPartitionedStorageOptions() |
Cosmos DB 分割儲存體選項。 |
屬性
AuthKey |
取得或設定 Cosmos DB 的驗證金鑰。 |
CompatibilityMode |
取得或設定值,指出是否要在相容性模式中執行。 舊版 CosmosDb 的金鑰長度限制為 255。 超過這個 的索引鍵在 中 CosmosDbKeyEscape 遭到截斷。 這會維持預設行為,但可藉由將 CompatibilityMode 設定為 false 來覆寫。 此設定也允許使用未指定 PartitionKey 的較舊集合。 注意:如果使用 KeySuffix,CompatibilityMode 不能是 'true'。 |
ContainerId |
取得或設定容器識別碼。 |
ContainerThroughput |
取得或設定建立容器時的輸送量集。 預設值為 400。 |
CosmosClientOptions |
取得或設定 CosmosClient 的選項。 |
CosmosDbEndpoint |
取得或設定 CosmosDB 端點。 |
DatabaseId |
取得或設定 Cosmos DB 實例的資料庫識別碼。 |
KeySuffix |
取得或設定要加入至每個索引鍵的後置詞。 EscapeKey(String). 注意: CompatibilityMode 必須設定為 'false',才能使用 KeySuffix。 使用 KeySuffix 時,不會截斷金鑰,但如果金鑰長度超過 CosmosDb 所允許的長度,則會擲回例外狀況。 |