Expiration.GetExpirationDateForItem Method
Gets the next expiration date for the specified item, and whether the current stage recurs.
Namespace: Microsoft.Office.RecordsManagement.PolicyFeatures
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Shared Function GetExpirationDateForItem ( _
listItem As SPListItem, _
<OutAttribute> ByRef bCurrentStageRecurs As Boolean _
) As Nullable(Of DateTime)
'Usage
Dim listItem As SPListItem
Dim bCurrentStageRecurs As Boolean
Dim returnValue As Nullable(Of DateTime)
returnValue = Expiration.GetExpirationDateForItem(listItem, _
bCurrentStageRecurs)
public static Nullable<DateTime> GetExpirationDateForItem(
SPListItem listItem,
out bool bCurrentStageRecurs
)
Parameters
listItem
Type: Microsoft.SharePoint.SPListItemThe list item.
bCurrentStageRecurs
Type: System.BooleanDetermines whether the current stage recurs.
Return Value
Type: System.Nullable<DateTime>
The next expiration date for the specified item.