IsolatedStorageFile.GetLastAccessTime(String) Metodo
Definizione
Restituisce la data e l'ora dell'ultimo accesso a un file o a una directory specificata.Returns the date and time a specified file or directory was last accessed.
public:
DateTimeOffset GetLastAccessTime(System::String ^ path);
[System.Runtime.InteropServices.ComVisible(false)]
public DateTimeOffset GetLastAccessTime (string path);
member this.GetLastAccessTime : string -> DateTimeOffset
Public Function GetLastAccessTime (path As String) As DateTimeOffset
Parametri
- path
- String
Percorso del file o della directory per cui ottenere informazioni sulla data e l'ora dell'ultimo accesso.The path to the file or directory for which to obtain last access date and time information.
Restituisce
Data e ora dell'ultimo accesso al file o alla directory specificata.The date and time that the specified file or directory was last accessed. Questo valore è espresso nell'ora locale.This value is expressed in local time.
- Attributi
Eccezioni
path
è una stringa di lunghezza zero, contiene solo spazi vuoti o contiene uno o più caratteri non validi definiti dal metodo GetInvalidPathChars().path
is a zero-length string, contains only white space, or contains one or more invalid characters defined by the GetInvalidPathChars() method.
path
è null
.path
is null
.
L'archivio isolato è stato chiuso.The isolated store has been closed.
L'archivio isolato è stato eliminato.The isolated store has been disposed.
L'archivio isolato è stato rimosso.The isolated store has been removed.
-oppure--or-
Lo spazio di memorizzazione isolato è disabilitato.Isolated storage is disabled.
Commenti
Se il file descritto da path
non esiste, questo metodo restituisce 12:00 Midnight, 1 gennaio 1601 D.C.If the file described by path
does not exist, this method returns 12:00 midnight, January 1, 1601 A.D. (C.E.) Ora UTC (Coordinated Universal Time), adattato all'ora locale.(C.E.) Coordinated Universal Time (UTC), adjusted to local time.