UpdateBlobInfo Method

Updates a blob's information.

Syntax

int UpdateBlobInfo(const QString& qsBlob);

Remarks

This method updates the information of the specified Blob in the container currently selected by Container.

There must be an item in the Blob* properties whose BlobName property matches the specified Blob name (and whose BlobSnapshot property is empty) before this method is called.

When this method is called, the values of the following propertys on the aforementioned item are sent to the server (note that the last two are indexed configuration settings):

Note that it is not possible to do a partial update of a blob's information. That is, all of the blob's current values for the aforementioned propertys will be replaced with the values sent in the request. To prevent data loss, applications should call GetBlobInfo to retrieve the blob's current information, and then modify it as desired, before using this method.

If the specified blob has an active lease, its lease Id must be specified using LeaseId, or the request will fail.

Error Handling

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Qt Edition - Version 20.0 [Build 8265]