Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetLastAccessTime()

DateTimeOffset System.IO.IsolatedStorage.IsolatedStorageFile.GetLastAccessTime ( string path)
inline

Definition at line 285 of file IsolatedStorageFile.cs.

286 {
287 if (path == null)
288 {
289 throw new ArgumentNullException("path");
290 }
291 if (path.Length == 0)
292 {
294 }
296 try
297 {
298 return new DateTimeOffset(File.GetLastAccessTime(GetFullPath(path)));
299 }
300 catch (UnauthorizedAccessException)
301 {
302 return new DateTimeOffset(1601, 1, 1, 0, 0, 0, TimeSpan.Zero).ToLocalTime();
303 }
304 }
static string Argument_EmptyPath
Definition SR.cs:38
Definition SR.cs:7

References System.SR.Argument_EmptyPath, System.IO.IsolatedStorage.IsolatedStorageFile.EnsureStoreIsValid(), System.IO.IsolatedStorage.IsolatedStorageFile.GetFullPath(), System.IO.File.GetLastAccessTime(), System.DateTimeOffset.ToLocalTime(), and System.TimeSpan.Zero.