Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ GetLastWriteTime()

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

Definition at line 306 of file IsolatedStorageFile.cs.

307 {
308 if (path == null)
309 {
310 throw new ArgumentNullException("path");
311 }
312 if (path.Length == 0)
313 {
315 }
317 try
318 {
319 return new DateTimeOffset(File.GetLastWriteTime(GetFullPath(path)));
320 }
321 catch (UnauthorizedAccessException)
322 {
323 return new DateTimeOffset(1601, 1, 1, 0, 0, 0, TimeSpan.Zero).ToLocalTime();
324 }
325 }
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.GetLastWriteTime(), System.DateTimeOffset.ToLocalTime(), and System.TimeSpan.Zero.