Click or drag to resize
IOssDoesObjectExist Method
判断指定的Bucket下是否存在指定的OssObject

Namespace: Aliyun.OSS
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.5.1.0 (2.5.1)
Syntax
bool DoesObjectExist(
	string bucketName,
	string key
)

Parameters

bucketName
Type: SystemString
Bucket的名称。
key
Type: SystemString
Key

Return Value

Type: Boolean
如果存在则返回True,否则返回False。
See Also