Copies the storage object.

Usage Sample:
// You need to assign your bucket in your code
string bucket = "TestBucket";
// You need to assign your object name (file name) in your code
string objectName = "test.txt";
// You need to assign your target object name (file name) in your code
string targetObjectName = "copiedObject.txt";
// You need to assign your app key and your secret key in your code
var client = new BaiduBCSClient("your app key", "your secret key");

// As a sample here, we just copy as another object in same bucket.
// You can make it different in your code.
client.CopyStorageObject(new StorageObjectCopyRequest
           {
               ObjectName = objectName,
               NewObjectName = targetObjectName,
               NewBucketName = bucket,
               BucketName = bucket
           });

Last edited Aug 13, 2014 at 6:47 AM by rynnwang, version 4