你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CloudBlob.Exists(BlobRequestOptions, OperationContext) 方法

定义

检查 Blob 是否存在。

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual bool Exists (Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member Exists : Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
override this.Exists : Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> bool
Public Overridable Function Exists (Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As Boolean

参数

options
BlobRequestOptions

一个 BlobRequestOptions 对象,它指定请求的其他选项。 如果 null为 ,则默认选项应用于请求。

operationContext
OperationContext

一个 OperationContext 对象,它一个表示当前操作的上下文。

返回

如果 Blob 存在,则为 true

属性

适用于