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

CloudFile.Exists(FileRequestOptions, OperationContext) 方法

定义

检查文件是否存在。

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

参数

options
FileRequestOptions

一个 FileRequestOptions 对象,它指定请求的其他选项。

operationContext
OperationContext

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

返回

true 如果文件存在,则为 ; false否则。

属性

适用于