Listing Objects
If you have any questions during development, post them on the Issues page of GitHub. For details about parameters and usage of each API, see the API Reference
After objects are uploaded, you may want to view the objects contained in a bucket. Sample code is as follows:
ListObjectsRequest request = new ListObjectsRequest();
request.BucketName = "bucketname";
ListObjectsResponse response = client.ListObjects(request);
foreach (ObsObject Object in response.ObsObjects)
{
Console.WriteLine("ObjectKey={0}, Size={1}", Object.ObjectKey, Object.Size);
}
- You can call ListObjectsResponse.ObsObjects to obtain the descriptions of all objects.
- In the previous sample code, 1000 objects will be listed, by default.
- For more information, see Listing Objects.
Last Article: Downloading an Object
Next Article: Deleting an Object
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.