Condividi tramite


SPList.Fields Property

Gets the collection of field objects that represents all the fields in the list.

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

Syntax

'Declaration
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableAttribute> _
Public ReadOnly Property Fields As SPFieldCollection
    Get
'Usage
Dim instance As SPList
Dim value As SPFieldCollection

value = instance.Fields
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableAttribute]
public SPFieldCollection Fields { get; }

Property Value

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

See Also

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace