如何在Azure存储Blob中使用占位符?

时间:2018-08-29 14:00:06

标签: azure azure-storage azure-storage-blobs

我将对Azure存储中的Blob进行一些调用。在某些情况下,我会称呼不存在的Blob。

我的问题是,我是否需要使用

检查每个调用是否存在blob
public static bool BlobExistsOnCloud(CloudBlobClient client, 
    string containerName, string key)
{
     return client.GetContainerReference(containerName)
                  .GetBlockBlobReference(key)
                  .Exists();  
}

或者我可以在容器上执行某种配置以显示占位符,以防特定的blob不存在?

谢谢

0 个答案:

没有答案