Click or drag to resize

ItemfetchFileProperty Method

Downloads a file to target path.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public Item fetchFileProperty(
	string propertyName,
	string targetPath,
	FetchFileMode mode
)

Parameters

propertyName
Type: SystemString
Name of property of type File for which physical file needs to be downloaded
targetPath
Type: SystemString
Path to folder or file to which physical file should be downloaded. Here is examples of possible values: - Folder path, example: C:/temp/ - Full file path, example: C:/temp/1.txt
mode
Type: Aras.IOMFetchFileMode
Responsible for reflecting in which mode operation should be completed.

Return Value

Type: Item
Item of type File. Property "checkedout_path" of item will be populated by the path to which file was downloaded.
Exceptions
ExceptionCondition
ArgumentNullException
  • Agrument "propertyName" is null or empty.
  • Agrument "targetPath" is null or empty.
ArgumentException
  • Agrument "mode" is not a part of FetchFileMode enumeration.
See Also