IFileSystemService.CopyEntry Method (Guid, Guid, String, EntryCreationOptions) |
Namespace: Dundas.BI.FileSystem
Guid CopyEntry( Guid entryId, Guid targetId, string? newName, EntryCreationOptions? options )
Exception | Condition |
---|---|
ArgumentException | entryId is Empty. -or- targetId is Empty. -or- newName is empty, only consists of whitespace, or contains invalid characters. |
ArgumentOutOfRangeException | newName is longer than MaxNameLength. |
NotFoundException | At least one of entryId and targetId represents an entry which does not exist. |
DuplicateItemException | An entry with the specified name already exists in the target and both Overwrite and AutoGenerateName are false. |
InvalidOperationException | Copying entries of the type corresponding to entryId into entries of the type corresponding to targetId is not supported (error code 2200). -or- The original entry is being copied as a subentry of an item which is not checked out to the caller. -or- The original entry is being copied to itself. |
NoPrivilegeException | The caller does not have the Read permission on one or more of the entries being copied. -or- The caller does not have permission to create items in the specified target entry. -or- Overwrite is true, an entry with the same name already exists in the specified target, and the caller does not have the Delete privilege on the entry which needs to be overwritten (and/or one of its children). |
InvalidSessionException | The caller context is not associated with a valid session. |