Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
web
Type: Microsoft.SharePoint.Client.WebThe site.
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.