SPUtility.GetRoleDefinitionFromLegacyWebGroupId method
SharePoint 2013
Gets the role definition for the web group with the specified ID from the specified collection of role definitions.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public static SPRoleDefinition GetRoleDefinitionFromLegacyWebGroupId( SPRoleDefinitionCollection roles, int webGroupId )
Parameters
- roles
- Type: Microsoft.SharePoint.SPRoleDefinitionCollection
The collection of role definitions.
- webGroupId
- Type: System.Int32
The web group ID to get the role definition.
| Exception | Condition |
|---|---|
| ArgumentException | The role definition cannot be found for the web group. |