Share via


ProjectPolicy.GetProjectExpirationDate method

Returns the expiration 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 GetProjectExpirationDate ( _
    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.GetProjectExpirationDate(context, _
    web)
public static ClientResult<DateTime> GetProjectExpirationDate(
    ClientRuntimeContext context,
    Web web
)

Parameters

Return value

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

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

If the site does not have the expiration 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