ProjectPolicy.CloseProject method

Closes the site.

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

Syntax

'Declaration
Public Shared Sub CloseProject ( _
    context As ClientRuntimeContext, _
    web As Web _
)
'Usage
Dim context As ClientRuntimeContext
Dim web As WebProjectPolicy.CloseProject(context, web)
public static void CloseProject(
    ClientRuntimeContext context,
    Web web
)

Parameters

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

ProjectPolicy class

ProjectPolicy members

Microsoft.SharePoint.Client.InformationPolicy namespace