File.ListItemAllFields property

Gets a value that specifies the list item field values for the list item corresponding to the file.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public ReadOnly Property ListItemAllFields As ListItem
    Get
'Usage
Dim instance As File
Dim value As ListItem

value = instance.ListItemAllFields
public ListItem ListItemAllFields { get; }

Property value

Type: Microsoft.SharePoint.Client.ListItem
Returns a ListItem instance representing the list item field values for the list item corresponding to the file.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

Server-relative URL must belong to the list. Error code: -2146232832.

[System.ArgumentException]

The folder MUST exist for the requested path for the server-relative URL. Error code: -2147024809.

[System.ArgumentNullException]

Server-relative URL must not be a null reference (Nothing in Visual Basic). Error code: -2147467261.

See also

Reference

File class

File members

Microsoft.SharePoint.Client namespace