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)

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