Share via


GetByID Method

The GetByID method of the SPRoleCollection class returns the site group with the specified member ID.

Parameters

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

Return Value

A Microsoft.SharePoint.SPRole object that represents the site group.

Remarks

The value of the id parameter corresponds to the unique member ID for the site group, which is contained in the ID property of the SPMember class.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security