Copies the storage object.
// 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 });