Click or drag to resize

ModelUtilsCopy Method (IRepository, ListIFolder, ListIObject, IFolder, ModelUtilsCopyOptions, String, ListAuthorizationEntry, ListAuthorizationEntry)

Copies folders and objects 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
C#
public static List<IFolder> Copy(
	IRepository pRepository,
	List<IFolder> ltFolders,
	List<IObject> ltObjects,
	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.
ltObjects
Type: System.Collections.GenericListIObject
The objects 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: ListIFolder
The new folders that correspond to to the ltFolders collection.
Remarks

If the ltFolders and ltObjects containers contain intersecting content the result can be unexpected. The caller is responsible for providing disjoint ltFolders and ltObjects 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