다음을 통해 공유


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

Return Value

Type: System.Boolean

See Also

Reference

Expiration Class

Expiration Members

Microsoft.Office.RecordsManagement.PolicyFeatures Namespace