I'm trying to obtain a list of all containers within an Azure Storage blob client using WindowsAzure.Storage
v8.5.0.
MSDN doesn't offer documentation for v8.5.0 - its latest is v8.4.0, but even if I downgrade to this version I still have the same problem: MSDN says that there's a ListContainers
method, but intellisense in Visual Studio says there isn't, and I get a build error if I insist on trying to call such a method.
I've checked and the version of the assembly in the \\bin directory is v8.5.0 (and v8.4.0, when I try that)
I've used .NET Reflector to look inside the packages and can find no such method.
So what has happened to ListContainers
, and if it's been removed then how else can I list all containers?
.Net Core version of Storage Client library does not support synchronous methods as of today. There's an open ticket on Github for that: https://github.com/Azure/azure-storage-net/issues/367 .
To list containers, you will need to use Async methods. Please use ListContainersSegmentedAsync
method for this purpose.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.