Partilhar via


SP.FieldCollection Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.FieldCollection class.

Methods

Name

Description

add

Adds a field to the field collection.

addDependentLookup

Adds a secondary lookup field that depends on a primary lookup field for its relationship to the list where it gets its information.

addFieldAsXml

Creates a field based on the specified schema, Boolean value, and field options.

FieldCollection

Initializes a new instance of the SP.FieldCollection Class.

getById

Returns the field object specified by the GUID.

getByInternalNameOrTitle

Returns the first field object with the specified internal name or title from the collection.

getByTitle

Returns the first field object in the collection based on the title of the specified field.

initPropertiesFromJson

This member is reserved for internal use and is not intended to be used directly from your code.

itemAt

Gets the field at the specified index in the collection.

Applies To

SP.FieldCollection Class

See Also

Reference

SP.FieldCollection Properties

SP Namespace