Expiration.SetExpirationDateForItem Method
This member is reserved for internal use and is not intended to be used directly from your code.
Namespace: Microsoft.Office.RecordsManagement.PolicyFeatures
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Shared Function SetExpirationDateForItem ( _
listItem As SPListItem, _
expireDate As Nullable(Of DateTime), _
bUpdateCanFail As Boolean _
) As Boolean
'Usage
Dim listItem As SPListItem
Dim expireDate As Nullable(Of DateTime)
Dim bUpdateCanFail As Boolean
Dim returnValue As Boolean
returnValue = Expiration.SetExpirationDateForItem(listItem, _
expireDate, bUpdateCanFail)
public static bool SetExpirationDateForItem(
SPListItem listItem,
Nullable<DateTime> expireDate,
bool bUpdateCanFail
)
Parameters
listItem
Type: Microsoft.SharePoint.SPListItemReserved for internal use.
expireDate
Type: System.Nullable<DateTime>Reserved for internal use.
bUpdateCanFail
Type: System.BooleanReserved for internal use.
Return Value
Type: System.Boolean