AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDocumentManager.SetExpirationDate Method

Sets the date on which to expire this document.

void SetExpirationDate(
int documentID,
object expires
);

#### Parameters

documentID
  The ID of the document to set an expiration date for.
expires
  The time at which the document is set to expire.

#### Remarks

The default expiration date for a document is set by the document crawler.

#### Exceptions

Exception Type | Condition
--- | ---
SoapException | There was a communication problem during the execution of the remote method call.
PortalException | The document ID is invalid or the operation resulted in an error on the portal.
ArgumentException | The documentID is negative.

#### See Also

IDocumentManager Interface | Plumtree.Remote.PRC Namespace