SPPolicyRole Class
Defines the rights granted and denied to a single policy role.
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.Administration.SPPolicyRole
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.Administration.SPPolicyRole
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Use the PolicyRoles property of the SPWebApplication class to return the collection of policy roles for the Web application.
Use an indexer to return a single policy role from the collection. For example, if the collection is assigned to a variable named myPolicyRoles, use myPolicyRoles[index] in C#, or myPolicyRoles(index) in Visual Basic, where index is either the name or the index number of the policy role in the collection.