IExpirationFormula.ComputeExpireDate Method
The code that determines when an item expires.
Namespace: Microsoft.Office.RecordsManagement.PolicyFeatures
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Function ComputeExpireDate ( _
item As SPListItem, _
parametersData As XmlNode _
) As Nullable(Of DateTime)
'Usage
Dim instance As IExpirationFormula
Dim item As SPListItem
Dim parametersData As XmlNode
Dim returnValue As Nullable(Of DateTime)
returnValue = instance.ComputeExpireDate(item, _
parametersData)
Nullable<DateTime> ComputeExpireDate(
SPListItem item,
XmlNode parametersData
)
Parameters
item
Type: Microsoft.SharePoint.SPListItemThe SPListItem object for which to calculate the expiration date.
parametersData
Type: System.Xml.XmlNodeThe parameters to use in the calculation.
Return Value
Type: System.Nullable<DateTime>
The expiration date of the item.