KeyValueStoreReplica.TryRemove 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
TryRemove(TransactionBase, String) |
Attempts to remove the value indexed by the specified key. |
TryRemove(TransactionBase, String, Int64) |
Attempts to remove the value indexed by the specified key. |
TryRemove(TransactionBase, String)
Attempts to remove the value indexed by the specified key.
public bool TryRemove (System.Fabric.TransactionBase transactionBase, string key);
member this.TryRemove : System.Fabric.TransactionBase * string -> bool
Public Function TryRemove (transactionBase As TransactionBase, key As String) As Boolean
Parameters
- transactionBase
- TransactionBase
The transaction instance.
- key
- String
The key, or index, of the value to be removed (as a string). Limited to 800 characters in length.
Returns
True if the specified key was found and removed. False if the specified key does not exist.
Applies to
TryRemove(TransactionBase, String, Int64)
Attempts to remove the value indexed by the specified key.
public bool TryRemove (System.Fabric.TransactionBase transactionBase, string key, long checkSequenceNumber);
member this.TryRemove : System.Fabric.TransactionBase * string * int64 -> bool
Public Function TryRemove (transactionBase As TransactionBase, key As String, checkSequenceNumber As Long) As Boolean
Parameters
- transactionBase
- TransactionBase
The transaction instance.
- key
- String
The key, or index, of the value to be removed (as a string). Limited to 800 characters in length.
- checkSequenceNumber
- Int64
The expected sequence number of the key to be removed.
Returns
True if the specified key was found and removed. False if the specified key does not exist.
Applies to
Azure SDK for .NET