<syntaxhighlight lang="csharp">
UBIK.Document.DocumentClass docObj = <SomeDocumentObject>; if (docObj != null){ string srcFullPath = docObj.DocumentFullPath();
if (docObj != null) { string srcFullPath = docObj.DocumentFullPath(); // Fullpath of document set if (!string.IsNullOrWhiteSpace(srcFullPath)) { // Get CloudFileSystem from UBIKEnvironemnt UBIK.Cloud.CloudFileSystem cfs = (UBIK.Cloud.CloudFileSystem)docObj.Environment.FileSystem;
if (cfs != null) { // Copy Document using CloudContainer class cfs.CloudContainer.Upload("doc/kno/123.jpg", srcFullPath); } }
}
}
</syntaxhighlight>
[[Category:Basics (internal)|CopyDocument]]