This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.DocumentDb.
- Assembly
- Cake
.DocumentDb .dll - Namespace
- Cake
.DocumentDb .Requests - Containing Type
- CollectionOperations
Syntax
public DocumentCollection GetOrCreateDocumentCollectionIfNotExists(string database, string collection, string partitionKeyPath = null, Nullable<int> throughput = null)
Parameters
Name | Type | Description |
---|---|---|
database | string | |
collection | string | |
partitionKeyPath | string | |
throughput | Nullable |
Return Value
Type | Description |
---|---|
DocumentCollection |