Share via


SP.GroupCollection.getById(id) Method

Applies to: SharePoint Foundation 2010

Returns a group from the collection based on the member ID of the group.

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

Parameters

  • id
    A 32-bit integer that specifies the member ID.

Type: Int32

Return Value

Type: SP.Group

Applies To

SP.GroupCollection Class

Exceptions

  • SPException
    The group cannot be found. Error Code: -2130575246.
  • ArgumentException
    An unknown or incorrect group collection type is to be initialized. Error Code: -2147024809.

See Also

Reference

SP.GroupCollection Methods

SP.GroupCollection Properties

SP Namespace