GroupCollection.GetById Method

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

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

[RemoteAttribute]
public Group GetById(
	int id
)

Parameters

id
Type: System.Int32

A 32-bit integer that specifies the member ID.

Return Value

Type: Microsoft.SharePoint.Client.Group
A Group object that represents the group.

ExceptionCondition
SPException

The group cannot be found. Error Code: -2130575246.

ArgumentException

An unknown or incorrect group collection type is to be initialized. Error Code: -2147024809.

UnauthorizedAccessException

The current user has insufficient permissions. Error Code: -2147024891.

Show: