你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

KeyValueStoreReplica.GetValue(TransactionBase, String) 方法

定义

获取存储的值作为与指定键关联的字节数组。

public byte[] GetValue (System.Fabric.TransactionBase transactionBase, string key);
member this.GetValue : System.Fabric.TransactionBase * string -> byte[]
Public Function GetValue (transactionBase As TransactionBase, key As String) As Byte()

参数

transactionBase
TransactionBase

事务实例。

key
String

要作为字符串) (检索的值的键或索引。 长度限制为 800 个字符。

返回

Byte[]

表示存储值的字节数组。

适用于