SPContext.Fields Property

Gets the fields metadata associated with the item or content type of the Microsoft SharePoint Foundation context.

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

Syntax

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

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

Property Value

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

Remarks

The Fields property can be used to provide metadata about the SPItem object of the SharePoint Foundation context.

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace