ProjectPolicy.CloseProject(SPWeb) ProjectPolicy.CloseProject(SPWeb) ProjectPolicy.CloseProject(SPWeb) Method

Definition

Closes the site.

public:
 static void CloseProject(Microsoft::SharePoint::SPWeb ^ web);
[Microsoft.SharePoint.Client.ClientCallableExceptionConstraint(Condition="Web is null.", ErrorType=typeof(System.ArgumentNullException), FixedId="ArgumentNullException")]
[Microsoft.SharePoint.Client.ClientCallableMethod(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful)]
public static void CloseProject (Microsoft.SharePoint.SPWeb web);
Public Shared Sub CloseProject (web As SPWeb)
Parameters
web
SPWeb SPWeb SPWeb

The site to be closed.

Exceptions

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

Remarks

The site must have a policy applied and the site is open.

Applies to