Click or drag to resize

IVirtualFileSystemGetTimeStamp Method

Determine the time stamp for a script.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
DateTime GetTimeStamp(
	string scriptPath
)

Parameters

scriptPath  String
The path of the script which is always in canonical form as returned by the Combine method.

Return Value

DateTime
The script's time stamp.
Remarks
Implement this method to get the script's time stamp. A time stamp indicates the last time the script was changed. This time stamp should be in UTC.
Example
IVirtualFileSystem implementation which uses the normal file system.
public DateTime GetTimeStamp(string scriptPath)
{
    return File.GetLastWriteTimeUtc(scriptPath);
}
See Also