ProjectPolicy.DoesProjectHavePolicy method

Check whether the site has a policy applied.

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

Syntax

'Declaration
Public Shared Function DoesProjectHavePolicy ( _
    web As SPWeb _
) As Boolean
'Usage
Dim web As SPWeb
Dim returnValue As Boolean

returnValue = ProjectPolicy.DoesProjectHavePolicy(web)
public static bool DoesProjectHavePolicy(
    SPWeb web
)

Parameters

Return value

Type: System.Boolean
true if there is a policy applied on the site; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

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

See also

Reference

ProjectPolicy class

ProjectPolicy members

Microsoft.Office.RecordsManagement.InformationPolicy namespace