File.TimeLastModified 屬性
取得值,指定最後修改檔案的時間。
命名空間: Microsoft.SharePoint.Client
組件: Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)
語法
'宣告
Public ReadOnly Property TimeLastModified As DateTime
Get
'用途
Dim instance As File
Dim value As DateTime
value = instance.TimeLastModified
public DateTime TimeLastModified { get; }
屬性值
類型:System.DateTime
會傳回一個DateTime執行個體,代表時檔案上次修改。
例外狀況
例外狀況 | 條件 |
---|---|
[System.IO.FileNotFoundException] | 找不到檔案。錯誤碼 ︰-2147024894。 |
[System.UnauthorizedAccessException] | 目前的使用者會有足夠的權限。錯誤碼 ︰-2147024891。 |