在SSIS程序包中,我添加了一个从blob存储下载文件的步骤,我能够连接到azure以及其他所有内容,但是当我尝试列出blob时,我总是得到0
try
{
StorageCredentials storageCredentials = new StorageCredentials(accountName, accountKey);
CloudStorageAccount cloudStorageAccount = new CloudStorageAccount(storageCredentials, useHttps: true);
CloudBlobClient BlobClient = cloudStorageAccount.CreateCloudBlobClient();
CloudBlobContainer container = BlobClient.GetContainerReference(containerBlob);
IEnumerable<IListBlobItem> ListBlobs = container.ListBlobs(containerDirectory, true); //string.empty MessageBox.Show(container.GetDirectoryReference(containerDirectory).ListBlobs().Count().ToString()); //I'M ALWAYS GETTING 0 HERE
任何人都不知道为什么会这样吗?