The GetTimeStamp method retrieves the current timestamp of the file specified in the virtualPath parameter. This can be used to compare the timestamp of a local version against the server version, and download the file only if required.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
long GetTimeStamp(
string virtualPath
)
Argument
virtualPath – System.String
This argument provides the path and filename of a specific file on the server.
Return Value
If this method succeeds, it returns a numeric value that identifies the timestamp of the specified file that was last uploaded on the server.
Using the IFileRepositoryService Interface for the GetTimeStamp Method
The following code is an example of using the GetTimeStamp() method:
// Get the Timestamp of a specified file on the server. long ts = fileRepos.GetTimeStamp("Images\\JP.JPG"); DateTime dt = new DateTime(ts);