OssClientDoesObjectExist Method |
Namespace: Aliyun.OSSAssembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.5.1.0 (2.5.1)
Syntaxpublic bool DoesObjectExist(
string bucketName,
string key
)
Public Function DoesObjectExist (
bucketName As String,
key As String
) As Boolean
public:
virtual bool DoesObjectExist(
String^ bucketName,
String^ key
) sealed
abstract DoesObjectExist :
bucketName : string *
key : string -> bool
override DoesObjectExist :
bucketName : string *
key : string -> bool
Parameters
- bucketName
- Type: SystemString
Bucket的名称。 - key
- Type: SystemString
Key。
Return Value
Type:
Boolean如果存在则返回True,否则返回False。
Implements
IOssDoesObjectExist(String, String)
See Also