【问题标题】:Checking if container and blob exist in Azure Blob Storage using built in Exists method使用内置的 Exists 方法检查容器和 blob 是否存在于 Azure Blob 存储中
【发布时间】:2013-04-18 03:45:30
【问题描述】:

我发现了这个检查 Blob 存储是否存在的扩展方法

Testing Existence of a Windows Azure Blob

Checking if a blob exists in Azure Storage

但是,我在 Microsoft.WindowsAzure.Storage 中发现了类似的内置实用程序方法。

  • CloudBlobContainer.Exists
  • CloudBlockBlob.Exists

据我测试,它们的功能类似于扩展方法。

问题:

它们是新的实用方法吗?我应该使用 Exists 方法中的构建还是使用自定义扩展方法。

【问题讨论】:

    标签: c# asp.net azure azure-storage azure-blob-storage


    【解决方案1】:

    Steve 在他的博文中写的是真正的扩展方法,因此不是核心库的一部分,但是您提到的方法是核心存储客户端库的一部分。我的建议是使用核心库中的方法,因为如果库中有任何变化,它们会保持最新状态。

    【讨论】:

    • 不幸的是,我可以在文档中找到它。它可能很新。
    猜你喜欢
    • 2013-07-05
    • 2011-02-08
    • 1970-01-01
    • 2021-05-16
    • 1970-01-01
    • 1970-01-01
    • 2016-12-07
    • 2017-11-02
    • 2020-07-22
    相关资源
    最近更新 更多