File.Name 属性
Gets the name of the file including the extension.
命名空间: 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
A string that contains the file name including the extension.
异常
异常 | 条件 |
---|---|
[System.IO.FileNotFoundException] | File cannot be found. Error code: - 2147024894. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: - 2147024891. |
备注
It must not be 空引用(无 在 Visual Basic 中). Its length must be equal to or less than 128.