gpt4 book ai didi

vb.net - Azure 表,检索数据

转载 作者:行者123 更新时间:2023-12-03 05:37:26 27 4
gpt4 key购买 nike

我试图从下面的retrieveResult 中提取某些数据。我该怎么做:

Dim accountname As String = My.Settings.Repository
Dim accountkey As String = My.Settings.StorageKey
Dim creds As StorageCredentials = New StorageCredentials(accountname, accountkey)
Dim account As CloudStorageAccount = New CloudStorageAccount(creds, useHttps:=True)
Dim client As CloudTableClient = account.CreateCloudTableClient()
Dim table As CloudTable = client.GetTableReference(My.Settings.Table)

Dim retrieveOperation As TableOperation
Dim retrievedResult As TableResult
retrieveOperation = TableOperation.Retrieve(Of NameRecord)(var_SystemID, var_TagName)
retrievedResult = table.Execute(retrieveOperation)

因此 RetrievedResult 基本上返回表中的整个记录​​。

我的问题是如何从检索结果中访问记录号属性? Image

谢谢

最佳答案

@Gaurav Mantri 是正确的,就像使用这行代码 retrievedResult.Result.Record 一样简单。

如果您仍有问题,请告诉我。

关于vb.net - Azure 表,检索数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61373929/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com