Expand Minimize
This topic has not yet been rated - Rate this topic

SPUtility.GetRoleDefinitionFromLegacyWebGroupId Method

Gets the role definition for the web group with the specified ID from the specified collection of role definitions.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.

Return Value

Type: Microsoft.SharePoint.SPRoleDefinition
The role definition for the web group.
ExceptionCondition
ArgumentException

The role definition cannot be found for the web group.

This method gets the role definition for the web group with the ID specified by the webGroupId parameter from the role definition collection specified by the roles parameter.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.