ModelUtilsCopy Method (IRepository, ListIFolder, IFolder, ModelUtilsCopyOptions, String, ListAuthorizationEntry, ListAuthorizationEntry) |
Copies folders to a target folder.
Namespace:
PDTec.IceNet.Sdk.Utils
Assembly:
PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax public static List<IFolder> Copy(
IRepository pRepository,
List<IFolder> ltFolders,
IFolder pTargetFolder,
ModelUtilsCopyOptions options,
string userName,
List<AuthorizationEntry> ltAdditionalFolderAuthorizations,
List<AuthorizationEntry> ltAdditionalObjectAuthorizations
)
Parameters
- pRepository
- Type: PDTec.IceNet.Core.ModelIRepository
The repository. - ltFolders
- Type: System.Collections.GenericListIFolder
The folders to be copied. - pTargetFolder
- Type: PDTec.IceNet.Core.ModelIFolder
The target folder. - options
- Type: PDTec.IceNet.Sdk.UtilsModelUtilsCopyOptions
The copy options. See ModelUtilsCopyOptions. - userName
- Type: SystemString
The user name that is used to check read authorization. - ltAdditionalFolderAuthorizations
- Type: System.Collections.GenericListAuthorizationEntry
Additional authorizations to be set for all created folders. - ltAdditionalObjectAuthorizations
- Type: System.Collections.GenericListAuthorizationEntry
Additional authorizations to be set for all created objects.
Return Value
Type:
ListIFolderThe new folders that correspond to to the
ltFolders collection.
Remarks
If the ltFolders containers contain intersecting
content the result can be unexpected. The caller is responsible for providing
disjoint ltFolders arguments.
Write permission to the target folder is not checked by this method. If this is required,
the caller is responsible to check for appropriate authorizations before calling the
Copy method.
See Also