SPPolicyRoleCollection.GetSpecialRole Method
Returns a default policy role based on the specified policy role type.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function GetSpecialRole ( _
type As SPPolicyRoleType _
) As SPPolicyRole
'Usage
Dim instance As SPPolicyRoleCollection
Dim type As SPPolicyRoleType
Dim returnValue As SPPolicyRole
returnValue = instance.GetSpecialRole(type)
public SPPolicyRole GetSpecialRole(
SPPolicyRoleType type
)
Parameters
type
Type: Microsoft.SharePoint.Administration.SPPolicyRoleTypeAn SPPolicyRoleType value that specifies the role type.
Return Value
Type: Microsoft.SharePoint.Administration.SPPolicyRole
An SPPolicyRole object that represents the policy role.