Share via


SPListItemCollection.Fields property

Returns a collection that contains all the fields that the query returned.

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

Syntax

'Declaration
Public ReadOnly Property Fields As SPFieldCollection
    Get
'Usage
Dim instance As SPListItemCollection
Dim value As SPFieldCollection

value = instance.Fields
public SPFieldCollection Fields { get; }

Property value

Type: Microsoft.SharePoint.SPFieldCollection
An SPFieldCollection object that contains a collection of SPField objects.

See also

Reference

SPListItemCollection class

SPListItemCollection members

Microsoft.SharePoint namespace