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

◆ GetCreationTime()

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

Definition at line 264 of file IsolatedStorageFile.cs.

265 {
266 if (path == null)
267 {
268 throw new ArgumentNullException("path");
269 }
270 if (path.Length == 0)
271 {
273 }
275 try
276 {
277 return new DateTimeOffset(File.GetCreationTime(GetFullPath(path)));
278 }
279 catch (UnauthorizedAccessException)
280 {
281 return new DateTimeOffset(1601, 1, 1, 0, 0, 0, TimeSpan.Zero).ToLocalTime();
282 }
283 }
static string Argument_EmptyPath
Definition SR.cs:38
Definition SR.cs:7

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