Share via


SPListItem.Fields Property

Gets or sets the collection of all fields in the parent of the item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Overrides Property Fields As SPFieldCollection
    Get
    Set
'Usage
Dim instance As SPListItem
Dim value As SPFieldCollection

value = instance.Fields

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

Property Value

Type: Microsoft.SharePoint.SPFieldCollection
An SPFieldCollection object that represents the fields.

Remarks

Using the Fields property on a list item object has identical results to calling ParentList.Fields .on the list item object.

See Also

Reference

SPListItem Class

SPListItem Members

Microsoft.SharePoint Namespace