KeyValueStoreReplica.EnumerateMetadata Method

Definition

Overloads

EnumerateMetadata(TransactionBase)

Returns an enumerator that iterates through the KeyValueStoreItemMetadata values in the key/value store.

EnumerateMetadata(TransactionBase, String)

Returns an enumerator that iterates through the KeyValueStoreItemMetadata values in the key/value store, where the value keys match the specified key prefix.

EnumerateMetadata(TransactionBase, String, Boolean)

Returns an enumerator that iterates through the KeyValueStoreItemMetadata values in the key/value store.

EnumerateMetadata(TransactionBase)

Returns an enumerator that iterates through the KeyValueStoreItemMetadata values in the key/value store.

public System.Collections.Generic.IEnumerator<System.Fabric.KeyValueStoreItemMetadata> EnumerateMetadata (System.Fabric.TransactionBase transactionBase);
member this.EnumerateMetadata : System.Fabric.TransactionBase -> System.Collections.Generic.IEnumerator<System.Fabric.KeyValueStoreItemMetadata>

Parameters

transactionBase
TransactionBase

The transaction instance.

Returns

System.Collections.Generic.IEnumerator<KeyValueStoreItemMetadata>

A KeyValueStoreItemMetadata enumerator.

Applies to

EnumerateMetadata(TransactionBase, String)

Returns an enumerator that iterates through the KeyValueStoreItemMetadata values in the key/value store, where the value keys match the specified key prefix.

public System.Collections.Generic.IEnumerator<System.Fabric.KeyValueStoreItemMetadata> EnumerateMetadata (System.Fabric.TransactionBase transactionBase, string keyPrefix);
member this.EnumerateMetadata : System.Fabric.TransactionBase * string -> System.Collections.Generic.IEnumerator<System.Fabric.KeyValueStoreItemMetadata>

Parameters

transactionBase
TransactionBase

The transaction instance.

keyPrefix
System.String

The key, or index, prefix to match (as a string). Limited to 800 characters in length.

Returns

System.Collections.Generic.IEnumerator<KeyValueStoreItemMetadata>

A KeyValueStoreItemMetadata enumerator.

Remarks

Equivalent to calling EnumerateMetadata(TransactionBase, String, Boolean) with strictPrefix set to true.

Applies to

EnumerateMetadata(TransactionBase, String, Boolean)

Returns an enumerator that iterates through the KeyValueStoreItemMetadata values in the key/value store.

public System.Collections.Generic.IEnumerator<System.Fabric.KeyValueStoreItemMetadata> EnumerateMetadata (System.Fabric.TransactionBase transactionBase, string keyPrefix, bool strictPrefix);
member this.EnumerateMetadata : System.Fabric.TransactionBase * string * bool -> System.Collections.Generic.IEnumerator<System.Fabric.KeyValueStoreItemMetadata>

Parameters

transactionBase
TransactionBase

The transaction instance.

keyPrefix
System.String

The key, or index, prefix to match (as a string). Limited to 800 characters in length.

strictPrefix
System.Boolean

When true, only keys prefixed by the value specified for keyPrefix are returned. Otherwise, enumeration starts at the first key matching or lexicographically greater than keyPrefix and continues until there are no more keys. The default is true.

Returns

System.Collections.Generic.IEnumerator<KeyValueStoreItemMetadata>

A KeyValueStoreItemMetadata enumerator.

Applies to