我尝试过使用: - collection.DefaultTimeToLive = CloudSettings.GetDataRetentionPeriod()* 86400; collection.SetPropertyValue(“DefaultTTL”,CloudSettings.GetDataRetentionPeriod()* 86400);
但它没有启用TTL属性,正如我们从天蓝色门户网站上看到的那样
答案 0 :(得分:0)
对我来说,DefaultTimeToLive有效:
collection.DefaultTimeToLive = <your-value-here>;
var response = await _client.ReplaceDocumentCollectionAsync(collection, request.RequestOptions);