Compartir a través de


File.Name Property

Gets the name of the file including the extension.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public ReadOnly Property Name As String
    Get
'Usage
Dim instance As File
Dim value As String

value = instance.Name
[RemoteAttribute]
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.

See Also

Reference

File Class

File Members

Microsoft.SharePoint.Client Namespace