我已经回顾过这一点: Getting list of names of Azure blob files in a container?
但我还没有找到任何关于如何使用 C# 列出容器内特定虚拟文件夹中的文件的代码示例。据我所知。我没有看到任何在 ListBlobs () 方法中指定文件路径的方法。
var blobStorageAccount = GetStorageAccount();
var blobClient = blobStorageAccount.CreateCloudBlobClient();
var blobContainer = blobClient.GetContainerReference(containerName);
List<string> blobNames = blobContainer.ListBlobs().OfType<CloudBlockBlob>().Select(b => b.Name).ToList();
Run Code Online (Sandbox Code Playgroud) 除了要有一个查询显示来自NodeGuid列匹配的两个表中的列之外,我还要向每行添加一列,该行包含此查询中包含当前行的table1.NodeGuid的总行数。
SELECT table1.NodeGuid
, table2.MarkerGuid mg
, --Need this column which contains a count of the total rows in this query that contain the current row's table1.NodeGuid
FROM table1
, table2
WHERE table2.NodeGuid = table1.NodeGuid
Run Code Online (Sandbox Code Playgroud)
谢谢。