IFileObject interface.CopyData Method

Definition

Namespace: ASNA.DataGate.Client
Assembly: ASNA.QSys.DataGate.Client.dll

Copies data from the file to a new file.

IFileObject CopyData(string targetDir, string newName, string srcMember, string newMember, CopyDataOptions options, int fromRRN, int toRRN, int cRecords)

Copies data from the file to a new file. If this object does not represent a physical file, returns null.

IFileObject CopyData(string targetDir, string newName, string srcMember, string newMember, CopyDataOptions options, int fromRRN, int toRRN, int cRecords)

Parameters

Type Parameter name Description
String targetDir The target directory to copy the data to.
String newName The name of the new file.
String srcMember The source member to copy from.
String newMember The new member to copy to.
CopyDataOptions options The options to use when copying the data.
Int32 fromRRN The relative record number to start copying from.
Int32 toRRN The relative record number to stop copying at.
Int32 cRecords The number of records to copy.

Returns

Type Description
IFileObject The new file with the copied data, or null if this object does not represent a physical file.

See Also