Share via


SPPolicyRoleCollection.GetById Method

Returns the policy role with the specifed GUID from the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function GetById ( _
    id As Guid _
) As SPPolicyRole
'Usage
Dim instance As SPPolicyRoleCollection
Dim id As Guid
Dim returnValue As SPPolicyRole

returnValue = instance.GetById(id)
public SPPolicyRole GetById(
    Guid id
)

Parameters

  • id
    Type: System.Guid

    A System.Guid that specifies the GUID of the policy role.

Return Value

Type: Microsoft.SharePoint.Administration.SPPolicyRole

See Also

Reference

SPPolicyRoleCollection Class

SPPolicyRoleCollection Members

Microsoft.SharePoint.Administration Namespace