Class PartitionKeyBuilder
Represents a partition key value list in the Azure Cosmos DB service.
public sealed class PartitionKeyBuilder
- Inheritance
-
PartitionKeyBuilder
- Inherited Members
- Extension Methods
Constructors
PartitionKeyBuilder()
Creates a new partition key value list object.
public PartitionKeyBuilder()
Methods
Add(bool)
Adds a partition key value of type bool to the list.
public PartitionKeyBuilder Add(bool val)
Parameters
val
boolThe value of type bool to be used as partition key.
Returns
- PartitionKeyBuilder
An instance of PartitionKeyBuilder to use.
Add(double)
Adds a partition key value of type double to the list.
public PartitionKeyBuilder Add(double val)
Parameters
val
doubleThe value of type double to be used as partition key.
Returns
- PartitionKeyBuilder
An instance of PartitionKeyBuilder to use.
Add(string)
Adds a partition key value of type string to the list.
public PartitionKeyBuilder Add(string val)
Parameters
val
stringThe value of type string to be used as partition key.
Returns
- PartitionKeyBuilder
An instance of PartitionKeyBuilder to use.
AddNoneType()
Adds a None partition key value.
public PartitionKeyBuilder AddNoneType()
Returns
- PartitionKeyBuilder
An instance of PartitionKeyBuilder to use.
AddNullValue()
Adds a partition key value which is null
public PartitionKeyBuilder AddNullValue()
Returns
- PartitionKeyBuilder
An instance of PartitionKeyBuilder to use.
Build()
Builds a new instance of the PartitionKey with the specified Partition Key values.
public PartitionKey Build()
Returns
- PartitionKey
An instance of PartitionKey