Compartilhar via


SP.FieldCollection.getById(id) Method

Applies to: SharePoint Foundation 2010

Gets the field with the specified ID.

var value = SP.FieldCollection.getById(id);

Parameters

id

Type: SP.Guid

The ID of the field.

Return Value

Type: SP.Field

The field with the specified ID.

Applies To

SP.FieldCollection Class

Exceptions

  • ArgumentException
    The field with the specified ID does not exist in the collection at the given scope. Error code: -2147024809.

See Also

Reference

SP.FieldCollection Methods

SP.FieldCollection Properties

SP Namespace