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)

Syntax

Public Overrides Property Fields As SPFieldCollection
    Get
    Set

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