Click or drag to resize

ModelUtilsCopy Method (IRepository, IFolder, IFolder, ModelUtilsCopyOptions, String)

Copies a folder 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 IFolder Copy(
	IRepository pRepository,
	IFolder pFolder,
	IFolder pTargetFolder,
	ModelUtilsCopyOptions options,
	string userName
)

Parameters

pRepository
Type: PDTec.IceNet.Core.ModelIRepository
The repository.
pFolder
Type: PDTec.IceNet.Core.ModelIFolder
The folder 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.

Return Value

Type: IFolder
The new folder that correspond to the pFolder folder.
Remarks

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