-
Notifications
You must be signed in to change notification settings - Fork 256
/
DocumentCollection.xml
658 lines (655 loc) · 36.9 KB
/
DocumentCollection.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
<Type Name="DocumentCollection" FullName="Microsoft.Azure.Documents.DocumentCollection">
<TypeSignature Language="C#" Value="public class DocumentCollection : Microsoft.Azure.Documents.Resource" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit DocumentCollection extends Microsoft.Azure.Documents.Resource" />
<TypeSignature Language="DocId" Value="T:Microsoft.Azure.Documents.DocumentCollection" />
<TypeSignature Language="VB.NET" Value="Public Class DocumentCollection
Inherits Resource" />
<TypeSignature Language="F#" Value="type DocumentCollection = class
 inherit Resource" />
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.14.0.0</AssemblyVersion>
<AssemblyVersion>2.14.1.0</AssemblyVersion>
<AssemblyVersion>2.15.0.0</AssemblyVersion>
<AssemblyVersion>2.16.0.0</AssemblyVersion>
<AssemblyVersion>2.16.1.0</AssemblyVersion>
<AssemblyVersion>2.16.2.0</AssemblyVersion>
<AssemblyVersion>2.17.0.0</AssemblyVersion>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.14.0.0</AssemblyVersion>
<AssemblyVersion>2.14.1.0</AssemblyVersion>
<AssemblyVersion>2.15.0.0</AssemblyVersion>
<AssemblyVersion>2.16.0.0</AssemblyVersion>
<AssemblyVersion>2.16.1.0</AssemblyVersion>
<AssemblyVersion>2.16.2.0</AssemblyVersion>
<AssemblyVersion>2.17.0.0</AssemblyVersion>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Microsoft.Azure.Documents.Resource</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>
Represents a document collection in the Azure Cosmos DB service. A collection is a named logical container for documents.
</summary>
<remarks>
A database may contain zero or more named collections and each collection consists of zero or more JSON documents.
Being schema-free, the documents in a collection do not need to share the same structure or fields. Since collections are application resources,
they can be authorized using either the master key or resource keys.
Refer to <see>http://azure.microsoft.com/documentation/articles/documentdb-resources/#collections</see> for more details on collections.
</remarks>
<altmember cref="T:Microsoft.Azure.Documents.PartitionKeyDefinition" />
<altmember cref="T:Microsoft.Azure.Documents.Document" />
<altmember cref="T:Microsoft.Azure.Documents.Database" />
<altmember cref="T:Microsoft.Azure.Documents.Offer" />
<altmember cref="T:Microsoft.Azure.Documents.IndexingPolicy" />
<example>
The example below creates a new partitioned collection with 50000 Request-per-Unit throughput.
The partition key is the first level 'country' property in all the documents within this collection.
<code language="c#"><![CDATA[
DocumentCollection collection = await client.CreateDocumentCollectionAsync(
databaseLink,
new DocumentCollection
{
Id = "MyCollection",
PartitionKey = new PartitionKeyDefinition
{
Paths = new Collection<string> { "/country" }
}
},
new RequestOptions { OfferThroughput = 50000} ).Result;
]]></code></example>
<example>
The example below creates a new collection with OfferThroughput set to 10000.
<code language="c#"><![CDATA[
DocumentCollection collection = await client.CreateDocumentCollectionAsync(
databaseLink,
new DocumentCollection { Id = "MyCollection" },
new RequestOptions { OfferThroughput = 10000} ).Result;
]]></code></example>
<example>
The example below creates a new collection with a custom indexing policy.
<code language="c#"><![CDATA[
DocumentCollection collectionSpec = new DocumentCollection { Id ="MyCollection" };
collectionSpec.IndexingPolicy.Automatic = true;
collectionSpec.IndexingPolicy.IndexingMode = IndexingMode.Consistent;
collection = await client.CreateDocumentCollectionAsync(database.SelfLink, collectionSpec);
]]></code></example>
<example>
The example below creates a document of type Book inside this collection.
<code language="c#"><![CDATA[
Document doc = await client.CreateDocumentAsync(collection.SelfLink, new Book { Title = "War and Peace" });
]]></code></example>
<example>
The example below queries for a Database by Id to retrieve the SelfLink.
<code language="c#"><![CDATA[
using Microsoft.Azure.Documents.Linq;
DocumentCollection collection = client.CreateDocumentCollectionQuery(databaseLink).Where(c => c.Id == "myColl").AsEnumerable().FirstOrDefault();
string collectionLink = collection.SelfLink;
]]></code></example>
<example>
The example below deletes this collection.
<code language="c#"><![CDATA[
await client.DeleteDocumentCollectionAsync(collection.SelfLink);
]]></code></example>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DocumentCollection ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Azure.Documents.DocumentCollection.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>
Initializes a new instance of the <see cref="T:Microsoft.Azure.Documents.DocumentCollection" /> class for the Azure Cosmos DB service.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ConflictResolutionPolicy">
<MemberSignature Language="C#" Value="public Microsoft.Azure.Documents.ConflictResolutionPolicy ConflictResolutionPolicy { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.Azure.Documents.ConflictResolutionPolicy ConflictResolutionPolicy" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.ConflictResolutionPolicy" />
<MemberSignature Language="VB.NET" Value="Public Property ConflictResolutionPolicy As ConflictResolutionPolicy" />
<MemberSignature Language="F#" Value="member this.ConflictResolutionPolicy : Microsoft.Azure.Documents.ConflictResolutionPolicy with get, set" Usage="Microsoft.Azure.Documents.DocumentCollection.ConflictResolutionPolicy" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Newtonsoft.Json.JsonProperty(PropertyName="conflictResolutionPolicy")]</AttributeName>
<AttributeName Language="F#">[<Newtonsoft.Json.JsonProperty(PropertyName="conflictResolutionPolicy")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Microsoft.Azure.Documents.ConflictResolutionPolicy</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets or sets the <see cref="P:Microsoft.Azure.Documents.DocumentCollection.ConflictResolutionPolicy" /> that is used for resolving conflicting writes on documents in different regions, in a collection in the Azure Cosmos DB service.
</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ConflictsLink">
<MemberSignature Language="C#" Value="public string ConflictsLink { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string ConflictsLink" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.ConflictsLink" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ConflictsLink As String" />
<MemberSignature Language="F#" Value="member this.ConflictsLink : string" Usage="Microsoft.Azure.Documents.DocumentCollection.ConflictsLink" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the self-link for conflicts in a collection from the Azure Cosmos DB service.
</summary>
<value>
The self-link for conflicts in a collection.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DefaultTimeToLive">
<MemberSignature Language="C#" Value="public int? DefaultTimeToLive { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Nullable`1<int32> DefaultTimeToLive" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.DefaultTimeToLive" />
<MemberSignature Language="VB.NET" Value="Public Property DefaultTimeToLive As Nullable(Of Integer)" />
<MemberSignature Language="F#" Value="member this.DefaultTimeToLive : Nullable<int> with get, set" Usage="Microsoft.Azure.Documents.DocumentCollection.DefaultTimeToLive" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Newtonsoft.Json.JsonProperty(NullValueHandling=Newtonsoft.Json.NullValueHandling.Ignore, PropertyName="defaultTtl")]</AttributeName>
<AttributeName Language="F#">[<Newtonsoft.Json.JsonProperty(NullValueHandling=Newtonsoft.Json.NullValueHandling.Ignore, PropertyName="defaultTtl")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Nullable<System.Int32></ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the default time to live in seconds for documents in a collection from the Azure Cosmos DB service.
</summary>
<value>
It is an optional property.
A valid value must be either a nonzero positive integer, '-1', or <c>null</c>.
By default, DefaultTimeToLive is set to null meaning the time to live is turned off for the collection.
The unit of measurement is seconds. The maximum allowed value is 2147483647.
</value>
<remarks>
<para>
The <see cref="P:Microsoft.Azure.Documents.DocumentCollection.DefaultTimeToLive" /> will be applied to all the documents in the collection as the default time-to-live policy.
The individual document could override the default time-to-live policy by setting its <see cref="P:Microsoft.Azure.Documents.Document.TimeToLive" />.
</para>
<para>
When the <see cref="P:Microsoft.Azure.Documents.DocumentCollection.DefaultTimeToLive" /> is <c>null</c>, the time-to-live will be turned off for the collection.
It means all the documents will never expire. The individual document's <see cref="P:Microsoft.Azure.Documents.Document.TimeToLive" /> will be disregarded.
</para>
<para>
When the <see cref="P:Microsoft.Azure.Documents.DocumentCollection.DefaultTimeToLive" /> is '-1', the time-to-live will be turned on for the collection.
By default, all the documents will never expire. The individual document could be given a specific time-to-live value by setting its
<see cref="P:Microsoft.Azure.Documents.Document.TimeToLive" />. The document's <see cref="P:Microsoft.Azure.Documents.Document.TimeToLive" /> will be honored, and the expired documents
will be deleted in background.
</para>
<para>
When the <see cref="P:Microsoft.Azure.Documents.DocumentCollection.DefaultTimeToLive" /> is a nonzero positive integer, the time-to-live will be turned on for the collection.
And a default time-to-live in seconds will be applied to all the documents. A document will be expired after the
specified <see cref="P:Microsoft.Azure.Documents.DocumentCollection.DefaultTimeToLive" /> value in seconds since its last write time.
The individual document could override the default time-to-live policy by setting its <see cref="P:Microsoft.Azure.Documents.Document.TimeToLive" />.
Please refer to the <see cref="P:Microsoft.Azure.Documents.Document.TimeToLive" /> for more details about evaluating the final time-to-live policy of a document.
</para>
</remarks>
<altmember cref="T:Microsoft.Azure.Documents.Document" />
<example>
The example below disables time-to-live on a collection.
<code language="c#"><![CDATA[
collection.DefaultTimeToLive = null;
]]></code></example>
<example>
The example below enables time-to-live on a collection. By default, all the documents never expire.
<code language="c#"><![CDATA[
collection.DefaultTimeToLive = -1;
]]></code></example>
<example>
The example below enables time-to-live on a collection. By default, the document will expire after 1000 seconds
since its last write time.
<code language="c#"><![CDATA[
collection.DefaultTimeToLive = 1000;
]]></code></example>
</Docs>
</Member>
<Member MemberName="DocumentsLink">
<MemberSignature Language="C#" Value="public string DocumentsLink { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string DocumentsLink" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.DocumentsLink" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property DocumentsLink As String" />
<MemberSignature Language="F#" Value="member this.DocumentsLink : string" Usage="Microsoft.Azure.Documents.DocumentCollection.DocumentsLink" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Newtonsoft.Json.JsonProperty(PropertyName="_docs")]</AttributeName>
<AttributeName Language="F#">[<Newtonsoft.Json.JsonProperty(PropertyName="_docs")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the self-link for documents in a collection from the Azure Cosmos DB service.
</summary>
<value>
The self-link for documents in a collection.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GeospatialConfig">
<MemberSignature Language="C#" Value="public Microsoft.Azure.Documents.GeospatialConfig GeospatialConfig { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.Azure.Documents.GeospatialConfig GeospatialConfig" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.GeospatialConfig" />
<MemberSignature Language="VB.NET" Value="Public Property GeospatialConfig As GeospatialConfig" />
<MemberSignature Language="F#" Value="member this.GeospatialConfig : Microsoft.Azure.Documents.GeospatialConfig with get, set" Usage="Microsoft.Azure.Documents.DocumentCollection.GeospatialConfig" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Newtonsoft.Json.JsonProperty(PropertyName="geospatialConfig")]</AttributeName>
<AttributeName Language="F#">[<Newtonsoft.Json.JsonProperty(PropertyName="geospatialConfig")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Microsoft.Azure.Documents.GeospatialConfig</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the <see cref="P:Microsoft.Azure.Documents.DocumentCollection.GeospatialConfig" /> associated with the collection from the Azure Cosmos DB service.
</summary>
<value>
Geospatial type of collection i.e. geography or geometry
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IndexingPolicy">
<MemberSignature Language="C#" Value="public Microsoft.Azure.Documents.IndexingPolicy IndexingPolicy { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.Azure.Documents.IndexingPolicy IndexingPolicy" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.IndexingPolicy" />
<MemberSignature Language="VB.NET" Value="Public Property IndexingPolicy As IndexingPolicy" />
<MemberSignature Language="F#" Value="member this.IndexingPolicy : Microsoft.Azure.Documents.IndexingPolicy with get, set" Usage="Microsoft.Azure.Documents.DocumentCollection.IndexingPolicy" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Azure.Documents.IndexingPolicy</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the <see cref="P:Microsoft.Azure.Documents.DocumentCollection.IndexingPolicy" /> associated with the collection from the Azure Cosmos DB service.
</summary>
<value>
The indexing policy associated with the collection.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PartitionKey">
<MemberSignature Language="C#" Value="public Microsoft.Azure.Documents.PartitionKeyDefinition PartitionKey { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.Azure.Documents.PartitionKeyDefinition PartitionKey" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.PartitionKey" />
<MemberSignature Language="VB.NET" Value="Public Property PartitionKey As PartitionKeyDefinition" />
<MemberSignature Language="F#" Value="member this.PartitionKey : Microsoft.Azure.Documents.PartitionKeyDefinition with get, set" Usage="Microsoft.Azure.Documents.DocumentCollection.PartitionKey" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Newtonsoft.Json.JsonProperty(PropertyName="partitionKey")]</AttributeName>
<AttributeName Language="F#">[<Newtonsoft.Json.JsonProperty(PropertyName="partitionKey")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Microsoft.Azure.Documents.PartitionKeyDefinition</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets or sets <see cref="T:Microsoft.Azure.Documents.PartitionKeyDefinition" /> object in the Azure Cosmos DB service.
</summary>
<value>
<see cref="T:Microsoft.Azure.Documents.PartitionKeyDefinition" /> object.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PartitionKeyDeleteThroughputFraction">
<MemberSignature Language="C#" Value="public double PartitionKeyDeleteThroughputFraction { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 PartitionKeyDeleteThroughputFraction" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.PartitionKeyDeleteThroughputFraction" />
<MemberSignature Language="VB.NET" Value="Public Property PartitionKeyDeleteThroughputFraction As Double" />
<MemberSignature Language="F#" Value="member this.PartitionKeyDeleteThroughputFraction : double with get, set" Usage="Microsoft.Azure.Documents.DocumentCollection.PartitionKeyDeleteThroughputFraction" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Newtonsoft.Json.JsonProperty(PropertyName="partitionKeyDeleteThroughputFraction")]</AttributeName>
<AttributeName Language="F#">[<Newtonsoft.Json.JsonProperty(PropertyName="partitionKeyDeleteThroughputFraction")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("PartitionKeyDeleteThroughputFraction is deprecated.")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("PartitionKeyDeleteThroughputFraction is deprecated.")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets or sets the PartitionKeyDeleteThroughputFraction for the collection.
</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PartitionKeyRangeStatistics">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IReadOnlyList<Microsoft.Azure.Documents.PartitionKeyRangeStatistics> PartitionKeyRangeStatistics { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IReadOnlyList`1<class Microsoft.Azure.Documents.PartitionKeyRangeStatistics> PartitionKeyRangeStatistics" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.PartitionKeyRangeStatistics" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property PartitionKeyRangeStatistics As IReadOnlyList(Of PartitionKeyRangeStatistics)" />
<MemberSignature Language="F#" Value="member this.PartitionKeyRangeStatistics : System.Collections.Generic.IReadOnlyList<Microsoft.Azure.Documents.PartitionKeyRangeStatistics>" Usage="Microsoft.Azure.Documents.DocumentCollection.PartitionKeyRangeStatistics" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Newtonsoft.Json.JsonIgnore]</AttributeName>
<AttributeName Language="F#">[<Newtonsoft.Json.JsonIgnore>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.IReadOnlyList<Microsoft.Azure.Documents.PartitionKeyRangeStatistics></ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets a collection of <see cref="P:Microsoft.Azure.Documents.DocumentCollection.PartitionKeyRangeStatistics" /> object in the Azure Cosmos DB service.
</summary>
<value>
<see cref="P:Microsoft.Azure.Documents.DocumentCollection.PartitionKeyRangeStatistics" /> object.
</value>
<remarks>
This is reported based on a sub-sampling of partition keys within the collection and hence these are approximate. If your partition keys are below 1GB of storage, they may not show up in the reported statistics.
</remarks>
<altmember cref="P:Microsoft.Azure.Documents.Client.RequestOptions.PopulatePartitionKeyRangeStatistics" />
<altmember cref="T:Microsoft.Azure.Documents.PartitionKeyStatistics" />
<example>
The following code shows how to log statistics for all partition key ranges as a string:
<code language="c#"><![CDATA[
var collection = await client.ReadDocumentCollectionAsync(
collectionUri,
new RequestOptions { PopulatePartitionKeyRangeStatistics = true } );
Console.WriteLine(collection.PartitionKeyRangeStatistics.ToString());
]]></code>
To log individual partition key range statistics, use the following code:
<code language="c#"><![CDATA[
var collection = await client.ReadDocumentCollectionAsync(
collectionUri,
new RequestOptions { PopulatePartitionKeyRangeStatistics = true } );
foreach(var partitionKeyRangeStatistics in collection.PartitionKeyRangeStatistics)
{
Console.WriteLine(partitionKeyRangeStatistics.PartitionKeyRangeId);
Console.WriteLine(partitionKeyRangeStatistics.DocumentCount);
Console.WriteLine(partitionKeyRangeStatistics.SizeInKB);
foreach(var partitionKeyStatistics in partitionKeyRangeStatistics.PartitionKeyStatistics)
{
Console.WriteLine(partitionKeyStatistics.PartitionKey);
Console.WriteLine(partitionKeyStatistics.SizeInKB);
}
}
]]></code>
The output will look something like that:
"statistics": [
{"id":"0","sizeInKB":1410184,"documentCount":42807,"partitionKeys":[]},
{"id":"1","sizeInKB":3803113,"documentCount":150530,"partitionKeys":[{"partitionKey":["4009696"],"sizeInKB":3731654}]},
{"id":"2","sizeInKB":1447855,"documentCount":59056,"partitionKeys":[{"partitionKey":["4009633"],"sizeInKB":2861210},{"partitionKey":["4004207"],"sizeInKB":2293163}]},
{"id":"3","sizeInKB":1026254,"documentCount":44241,"partitionKeys":[]},
{"id":"4","sizeInKB":3250973,"documentCount":124959,"partitionKeys":[]}
]
</example>
</Docs>
</Member>
<Member MemberName="StoredProceduresLink">
<MemberSignature Language="C#" Value="public string StoredProceduresLink { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string StoredProceduresLink" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.StoredProceduresLink" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property StoredProceduresLink As String" />
<MemberSignature Language="F#" Value="member this.StoredProceduresLink : string" Usage="Microsoft.Azure.Documents.DocumentCollection.StoredProceduresLink" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Newtonsoft.Json.JsonProperty(PropertyName="_sprocs")]</AttributeName>
<AttributeName Language="F#">[<Newtonsoft.Json.JsonProperty(PropertyName="_sprocs")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the self-link for stored procedures in a collection from the Azure Cosmos DB service.
</summary>
<value>
The self-link for stored procedures in a collection.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TimeToLivePropertyPath">
<MemberSignature Language="C#" Value="public string TimeToLivePropertyPath { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string TimeToLivePropertyPath" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.TimeToLivePropertyPath" />
<MemberSignature Language="VB.NET" Value="Public Property TimeToLivePropertyPath As String" />
<MemberSignature Language="F#" Value="member this.TimeToLivePropertyPath : string with get, set" Usage="Microsoft.Azure.Documents.DocumentCollection.TimeToLivePropertyPath" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Newtonsoft.Json.JsonProperty(NullValueHandling=Newtonsoft.Json.NullValueHandling.Ignore, PropertyName="ttlPropertyPath")]</AttributeName>
<AttributeName Language="F#">[<Newtonsoft.Json.JsonProperty(NullValueHandling=Newtonsoft.Json.NullValueHandling.Ignore, PropertyName="ttlPropertyPath")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets or sets the time to live base timestamp property path.
</summary>
<value>
It is an optional property.
This property should be only present when DefaultTimeToLive is set. When this property is present, time to live
for a document is decided based on the value of this property in document.
By default, TimeToLivePropertyPath is set to null meaning the time to live is based on the _ts property in document.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TriggersLink">
<MemberSignature Language="C#" Value="public string TriggersLink { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string TriggersLink" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.TriggersLink" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property TriggersLink As String" />
<MemberSignature Language="F#" Value="member this.TriggersLink : string" Usage="Microsoft.Azure.Documents.DocumentCollection.TriggersLink" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the self-link for triggers in a collection from the Azure Cosmos DB service.
</summary>
<value>
The self-link for triggers in a collection.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="UniqueKeyPolicy">
<MemberSignature Language="C#" Value="public Microsoft.Azure.Documents.UniqueKeyPolicy UniqueKeyPolicy { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.Azure.Documents.UniqueKeyPolicy UniqueKeyPolicy" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.UniqueKeyPolicy" />
<MemberSignature Language="VB.NET" Value="Public Property UniqueKeyPolicy As UniqueKeyPolicy" />
<MemberSignature Language="F#" Value="member this.UniqueKeyPolicy : Microsoft.Azure.Documents.UniqueKeyPolicy with get, set" Usage="Microsoft.Azure.Documents.DocumentCollection.UniqueKeyPolicy" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Newtonsoft.Json.JsonProperty(PropertyName="uniqueKeyPolicy")]</AttributeName>
<AttributeName Language="F#">[<Newtonsoft.Json.JsonProperty(PropertyName="uniqueKeyPolicy")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Microsoft.Azure.Documents.UniqueKeyPolicy</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets or sets the <see cref="P:Microsoft.Azure.Documents.DocumentCollection.UniqueKeyPolicy" /> that guarantees uniqueness of documents in collection in the Azure Cosmos DB service.
</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="UserDefinedFunctionsLink">
<MemberSignature Language="C#" Value="public string UserDefinedFunctionsLink { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string UserDefinedFunctionsLink" />
<MemberSignature Language="DocId" Value="P:Microsoft.Azure.Documents.DocumentCollection.UserDefinedFunctionsLink" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property UserDefinedFunctionsLink As String" />
<MemberSignature Language="F#" Value="member this.UserDefinedFunctionsLink : string" Usage="Microsoft.Azure.Documents.DocumentCollection.UserDefinedFunctionsLink" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>2.18.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the self-link for user defined functions in a collection from the Azure Cosmos DB service.
</summary>
<value>
The self-link for user defined functions in a collection.
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>