LitS3.S3Service.ForEachBucket C# (CSharp) 메소드

ForEachBucket() 공개 메소드

Performs the given action on each of your buckets without loading the list of buckets completely into memory.
public ForEachBucket ( Action action ) : void
action Action
리턴 void
        public void ForEachBucket(Action<Bucket> action)
        {
            using (GetAllBucketsResponse response = new GetAllBucketsRequest(this).GetResponse())
                foreach (Bucket bucket in response.Buckets)
                    action(bucket);
        }