ProjectPolicy.IsProjectClosed method
Checks whether the site is closed.
Namespace: Microsoft.SharePoint.Client.InformationPolicy
Assembly: Microsoft.Office.Client.Policy (in Microsoft.Office.Client.Policy.dll)
Syntax
'Declaration
Public Shared Function IsProjectClosed ( _
context As ClientRuntimeContext, _
web As Web _
) As ClientResult(Of Boolean)
'Usage
Dim context As ClientRuntimeContext
Dim web As Web
Dim returnValue As ClientResult(Of Boolean)
returnValue = ProjectPolicy.IsProjectClosed(context, _
web)
public static ClientResult<bool> IsProjectClosed(
ClientRuntimeContext context,
Web web
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
web
Type: Microsoft.SharePoint.Client.WebThe site.
Return value
Type: Microsoft.SharePoint.Client.ClientResult<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.