ProjectPolicy.GetProjectPolicies method
Returns all policies that are available on the site.
Namespace: Microsoft.Office.RecordsManagement.InformationPolicy
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Shared Function GetProjectPolicies ( _
web As SPWeb _
) As List(Of ProjectPolicy)
'Usage
Dim web As SPWeb
Dim returnValue As List(Of ProjectPolicy)
returnValue = ProjectPolicy.GetProjectPolicies(web)
public static List<ProjectPolicy> GetProjectPolicies(
SPWeb web
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe site.
Return value
Type: System.Collections.Generic.List<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
Microsoft.Office.RecordsManagement.InformationPolicy namespace