0
私はブロブコンテナ内いくつかの.pngファイルを持っているを取得するためのブロブコンテナは、私は、パラメータとしてファイル名を渡すことでファイルを取得することができますよBlob Containerにクエリを実行し、含まれているすべてのファイルのリストを取得します。どうすればいい?クエリファイル
public class FilesController : Controller
{
private CloudBlobContainer container;
private CloudStorageAccount storageAccount;
private CloudBlobClient blobClient;
private CloudTableClient tableClient;
public FilesController()
{
this.storageAccount = CloudStorageAccount.Parse(_dbConnection.ConnectionAzure);
this.storageAccount.CreateCloudBlobClient();
this.blobClient = storageAccount.CreateCloudBlobClient();
this.container = blobClient.GetContainerReference("public/MyFolder");
this.tableClient = storageAccount.CreateCloudTableClient();
}
public ActionResult MyMethod(string fileName)
{
var blob = container.GetBlockBlobReference(System.IO.Path.GetFileName(fileName));
}