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
web
Type: Microsoft.SharePoint.SPWebThe site.
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
Microsoft.Office.RecordsManagement.InformationPolicy namespace