共用方式為


File.Name 屬性

取得包含副檔名的檔案名稱。

命名空間:  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 Name As String
    Get
'用途
Dim instance As File
Dim value As String

value = instance.Name
public string Name { get; }

屬性值

類型:System.String
包含包括擴充的檔案名稱的字串。

例外狀況

例外狀況 條件
[System.IO.FileNotFoundException]

找不到檔案。錯誤碼:-2147024894。

[System.UnauthorizedAccessException]

目前的使用者會有足夠的權限。錯誤碼:-2147024891。

備註

它不能null 參考 (未執行任何動作 於 Visual Basic 中)。其長度必須等於或小於 128。

請參閱

參照

File 類別

File 成員

Microsoft.SharePoint.Client 命名空間