ProjectPolicy.IsProjectClosed method

Check whether the site is closed.

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

Syntax

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

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

Parameters

Return value

Type: System.Boolean
true if the site is closed; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

If the site does not have a policy applied, then the site is not closed.

See also

Reference

ProjectPolicy class

ProjectPolicy members

Microsoft.Office.RecordsManagement.InformationPolicy namespace