![](/img/trans.png)
[英]How to list all the Directories or Files, from a root Directory, in Azure File Storage -and- using the .NET Storage SDK?
[英]How to detect Azure Storage type using SDK?
我需要能夠檢測某個帳戶提供的存儲類型。 例如,如果用戶向我提供了他們的存儲帳戶和密鑰,我需要能夠檢測它是否是高級LRS類型的存儲。 我沒有運氣就看過CloudStorageAccount類。 有誰知道我如何以編程方式檢測到這個?
您需要使用Azure Management API。 初始化StorageManagementClient對象並從中“獲取”存儲帳戶。 storageAccount.Properties.AccountType包含帳戶是“Premium”還是其他帳戶
Management API的Storage Nuget包是: Microsoft.WindowsAzure.Management.Storage (經典)或Microsoft.Azure.Management.Storage (v2 / ARM)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.