Diese Seite ist in Ihrer lokalen Sprache noch nicht verfügbar. Wir arbeiten daran, weitere Sprachversionen hinzuzufügen. Vielen Dank für Ihre Unterstützung.

On this page

Show all

Listing Objects

Updated on 2023-03-16 GMT+08:00

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);
}
NOTE:
  • 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.
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback