Dela via


KeyValueStoreReplica.TryRemove Method

Definition

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