ProjectPolicy.GetProjectPolicies method

Returns all policies that are available on the site.

Namespace:  Microsoft.SharePoint.Client.InformationPolicy
Assembly:  Microsoft.Office.Client.Policy (in Microsoft.Office.Client.Policy.dll)

Syntax

'Declaration
Public Shared Function GetProjectPolicies ( _
    context As ClientRuntimeContext, _
    web As Web _
) As ClientObjectList(Of ProjectPolicy)
'Usage
Dim context As ClientRuntimeContext
Dim web As Web
Dim returnValue As ClientObjectList(Of ProjectPolicy)

returnValue = ProjectPolicy.GetProjectPolicies(context, _
    web)
public static ClientObjectList<ProjectPolicy> GetProjectPolicies(
    ClientRuntimeContext context,
    Web web
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientObjectList<ProjectPolicy>
The collection of all available policies on the site.

Exceptions

Exception Condition
ArgumentNullException

The web parameter is a null reference (Nothing in Visual Basic).

See also

Reference

ProjectPolicy class

ProjectPolicy members

Microsoft.SharePoint.Client.InformationPolicy namespace