SPItem.Fields Property

Gets or sets the collection of fields for metadata associated with the item.

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

Syntax

'Declaration
Public Overridable Property Fields As SPFieldCollection
    Get
    Set
'Usage
Dim instance As SPItem
Dim value As SPFieldCollection

value = instance.Fields

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

Property Value

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

See Also

Reference

SPItem Class

SPItem Members

Microsoft.SharePoint Namespace