ProjectPolicy.CloseProject method
Closes the site.
Namespace: Microsoft.Office.RecordsManagement.InformationPolicy
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Shared Sub CloseProject ( _
web As SPWeb _
)
'Usage
Dim web As SPWebProjectPolicy.CloseProject(web)
public static void CloseProject(
SPWeb web
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe site to be closed.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The web parameter is a null reference (Nothing in Visual Basic). |
Remarks
The site must have a policy applied and the site is open.
See also
Reference
Microsoft.Office.RecordsManagement.InformationPolicy namespace