Share via


Item(String) Property

The Item property of the SPRoleCollection class gets the site group object with the specified name from the collection.

[C#] In C#, this property is an indexer for the SPRoleCollection class.

Parameters

name   A string that contains the name.

Property Value

A Microsoft.SharePoint.SPRole object that represents the role.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security