Discuss this help topic in SecureBlackbox Forum

TElAWSS3DataStorage.ObjectExists

TElAWSS3DataStorage     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Checks whether data object exists in the storage.

Declaration

[C#]
    bool ObjectExists(string BucketName, string Key);
    bool ObjectExists(TElAWSS3DataStorageObject Obj);
    bool ObjectExists(string BucketName, string Key, TElStringList Headers);

[VB.NET]
    Function ObjectExists(ByVal BucketName As String, ByVal Key As String) As Boolean
    Function ObjectExists(ByVal Obj As TElAWSS3DataStorageObject) As Boolean
    Function ObjectExists(ByVal BucketName As String, ByVal Key As String, ByVal Headers As TElStringList) As Boolean

[Pascal]
    function ObjectExists(const BucketName : string; const Key : string) : boolean;
    function ObjectExists(const BucketName : string; const Key : string; Headers : TStringList) : boolean;
    function ObjectExists(Obj : TElAWSS3DataStorageObject) : boolean;

[C++]
    bool ObjectExists(const std::string &BucketName, const std::string &Key);
    bool ObjectExists(TElAWSS3DataStorageObject &Obj);
    bool ObjectExists(TElAWSS3DataStorageObject *Obj);
    bool ObjectExists(const std::string &BucketName, const std::string &Key, TElStringList &Headers);
    bool ObjectExists(const std::string &BucketName, const std::string &Key, TElStringList *Headers);

[PHP]
    bool ObjectExists(string $BucketName, string $Key)
    bool ObjectExists(TElAWSS3DataStorageObject $Obj)
    bool ObjectExists(string $BucketName, string $Key, TElStringList $Headers)

[Java]
    boolean objectExists(String BucketName, String Key, TElStringList Headers);
    boolean objectExists(TElAWSS3DataStorageObject Obj);
    boolean objectExists(String BucketName, String Key);

Parameters

  • BucketName - name of the data bucket
  • Obj - data object which existence should be checked
  • Key - a unique identifier of the object within a bucket
  • Headers - contains HTTP headers

Return value

    Returns True if the object exists in the data storage and False otherwise.

Description

    Use this method to check if certain data objects are present in the storage.

See also:     CreateObject     List    

Discuss this help topic in SecureBlackbox Forum