Share via


ProjectPolicy.GetProjectCloseDate method

Returns the close date of the site.

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

Syntax

'Declaration
Public Shared Function GetProjectCloseDate ( _
    context As ClientRuntimeContext, _
    web As Web _
) As ClientResult(Of DateTime)
'Usage
Dim context As ClientRuntimeContext
Dim web As Web
Dim returnValue As ClientResult(Of DateTime)

returnValue = ProjectPolicy.GetProjectCloseDate(context, _
    web)
public static ClientResult<DateTime> GetProjectCloseDate(
    ClientRuntimeContext context,
    Web web
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientResult<DateTime>
The date when the site was closed or will be closed.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

If the site does not have a close date, then it returns an implementation-specific value that is less than 1970.

See also

Reference

ProjectPolicy class

ProjectPolicy members

Microsoft.SharePoint.Client.InformationPolicy namespace