File.Name property
Gets the name of the file including the extension.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public ReadOnly Property Name As String
Get
'Usage
Dim instance As File
Dim value As String
value = instance.Name
public string Name { get; }
Property value
Type: System.String
A string that contains the file name including the extension.
Exceptions
Exception | Condition |
---|---|
[System.IO.FileNotFoundException] | File cannot be found. Error code: - 2147024894. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: - 2147024891. |
Remarks
It must not be a null reference (Nothing in Visual Basic). Its length must be equal to or less than 128.