語言

IsolatedStorageFile.GetCreationTime(String) 方法

定義

回傳指定檔案或目錄的建立日期與時間。

public:
 DateTimeOffset GetCreationTime(System::String ^ path);
public DateTimeOffset GetCreationTime(string path);
[System.Runtime.InteropServices.ComVisible(false)]
public DateTimeOffset GetCreationTime(string path);
member this.GetCreationTime : string -> DateTimeOffset
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.GetCreationTime : string -> DateTimeOffset
Public Function GetCreationTime (path As String) As DateTimeOffset

參數

path
String

指向檔案或目錄的路徑,用以取得建立日期與時間資訊。

傳回

指定檔案或目錄的建立日期與時間。 此數值以當地時間表示。

屬性

例外狀況

path 是零長度字串,僅包含空白,或包含一個或多個由 GetInvalidPathChars() 該方法定義的無效字元。

path 是 null。

這家孤立的商店已經關閉。

這間孤立的商店已被處理掉。

隔離的商店已被拆除。

-或-

隔離儲存已被禁用。

備註

若路徑描述的檔案不存在,此方法回傳 1601 年 1 月 1 日午夜 12:00(公元曆)協調世界時(UTC),並調整至當地時間。

適用於

另請參閱