AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDocumentManager.SetBrokenLinkDeletionTime Method

Sets the time interval after which a document with a broken link will be deleted.

void SetBrokenLinkDeletionTime(
int documentID,
TimeInterval deletionTime
);

#### Parameters

documentID
  The ID of the document to set broken link deletion time; cannot be negative.
deletionTime
  The time interval after which a missing document will be deleted. The numeric component must be between 1 and 999, otherwise an `ArgumentException` will be thrown. Setting the deletionTime to `TimeInterval.Infinite` will cause the document to never be deleted.

#### Remarks

Setting the deletionTime to `TimeInterval.Infinite` will cause a broken link document to never be deleted.
The numeric component of the deletionTime must be between 1 and 999, otherwise an `ArgumentException` will be thrown.
The default broken link deletion time 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 in the portal.
ArgumentException | The documentID is negative or the numeric component of the refreshInterval is not between 1 and 999.
NullReferenceException | The DeletionTime or the unit component of the DeletionTime is `null`.

#### See Also

IDocumentManager Interface | Plumtree.Remote.PRC Namespace