PartitionKeyBuilder.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Add(Boolean) |
Adds a partition key value of type bool to the list. |
Add(Double) |
Adds a partition key value of type double to the list. |
Add(String) |
Adds a partition key value of type string to the list. |
Add(Boolean)
- Source:
- PartitionKeyBuilder.cs
Adds a partition key value of type bool to the list.
public Microsoft.Azure.Cosmos.PartitionKeyBuilder Add (bool val);
member this.Add : bool -> Microsoft.Azure.Cosmos.PartitionKeyBuilder
Public Function Add (val As Boolean) As PartitionKeyBuilder
Parameters
- val
- Boolean
The value of type bool to be used as partition key.
Returns
An instance of PartitionKeyBuilder to use.
Applies to
Add(Double)
- Source:
- PartitionKeyBuilder.cs
Adds a partition key value of type double to the list.
public Microsoft.Azure.Cosmos.PartitionKeyBuilder Add (double val);
member this.Add : double -> Microsoft.Azure.Cosmos.PartitionKeyBuilder
Public Function Add (val As Double) As PartitionKeyBuilder
Parameters
- val
- Double
The value of type double to be used as partition key.
Returns
An instance of PartitionKeyBuilder to use.
Applies to
Add(String)
- Source:
- PartitionKeyBuilder.cs
Adds a partition key value of type string to the list.
public Microsoft.Azure.Cosmos.PartitionKeyBuilder Add (string val);
member this.Add : string -> Microsoft.Azure.Cosmos.PartitionKeyBuilder
Public Function Add (val As String) As PartitionKeyBuilder
Parameters
- val
- String
The value of type string to be used as partition key.
Returns
An instance of PartitionKeyBuilder to use.