FileCommunicatorGetFileNames(String, DateTime, DateTime, CancellationToken) Method
Returns a list of file names without path located in Directory. Communicator must be connected or AutoConnect must be set to perform this operation.
If no file that matches the fileNameMask and modifiedAfter/modifiedBefore restricion is found, ComException is thrown.
Namespace: OddPrg.CommunicationAssembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
public FileNameInfo[] GetFileNames(
string fileNameMask,
ref DateTime modifiedAfter,
DateTime modifiedBefore,
CancellationToken cancelToken
)
- fileNameMask String
-
Mask of file names to return. It can contain * for more charecters or ? for one charecter. If it is empty, all files are returned.
- modifiedAfter DateTime
- Returns only files with modification time greater than this time. Updates this parameters by most recent file modification.
- modifiedBefore DateTime
- Returns only files with modification time lower or equal to this time.
- cancelToken CancellationToken
FileNameInfoList of file information sorted ascending by modification time.