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
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
web
Type: Microsoft.SharePoint.Client.WebThe 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.