container.ListBlobsSegmented与blobclient.ListBlobsWithPrefix有什么区别?

goo*_*ate 1 c# azure azure-storage azure-storage-blobs

在Azure Blob存储中,在这两个不同对象上的这两种方法之间有什么区别?我什么时候使用ContainerInstance.ListBlobsSegmented()vs CloudBlobClientInstance.ListBlobsWithPrefix()

是否使用PageBlobs和Block Blob有关系吗?

dun*_*nry 5

ListBlobsSegmented返回页面中的Blob名称(最多5000个),不进行过滤。CloudBlobContainer.ListBlobs在幕后使用此方法枚举所有Blob。它也直接通过ListBlobsSegmented方法公开。ListBlobsWithPrefix允许您过滤以前缀开头的Blob。CloudBlobClient.ListBlobsWithPrefix方法使用此方法。

它是页面还是块Blob都没有关系。