Azure StorageV2文件存储返回(400)错误的请求 [英] Azure StorageV2 File Storage returns (400) Bad Request
本文介绍了Azure StorageV2文件存储返回(400)错误的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
CloudStorageAccount storageAccount = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=bxxxx;AccountKey=xxxx;EndpointSuffix=core.windows.net");
CloudFileClient fileClient = storageAccount.CreateCloudFileClient();
CloudFileShare share = fileClient.GetShareReference("logs");
if (share.Exists())
{
}
使用版本9.3.1
在这里抛出异常.
if (share.Exists())
推荐答案
Microsoft.WindowsAzure.Storage.File   ; ?检查共享是否存在的代码示例:
@zxed-bl Have you tried using Microsoft.WindowsAzure.Storage.File ? The code example to check if a share exists:
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]公共虚拟布尔存在(Microsoft.WindowsAzure.Storage.File.FileRequestOptions requestOptions = null,Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]public virtual bool Exists (Microsoft.WindowsAzure.Storage.File.FileRequestOptions requestOptions = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
这篇关于Azure StorageV2文件存储返回(400)错误的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文