DeleteDoc method
Content Manager OnDemand deletes the specified document from the database.
- Method:
- short DeleteDoc(
- Parameters
- DocIndex
- Specifies the zero-based relative document number within the document list of the active folder.
- Description
- Since the document numbers might have changed, information from a previous GetDocDisplayValues method might not be valid.
- Return Value:
- Refer to return codes.
- See Also:
- GetNumDocsInList method
- Example:
- The following example deletes the first document in the document
list of the active folder. C/C++ Example
CArsOle * pArsCtrl; short rc; . . rc = pArsCtrl->DeleteDoc( 0 ); if ( rc != ARS_OLE_RC_SUCCESS ) ERROR; . .
Visual Basic ExampleDim rc As Integer . . rc = ArsOle.DeleteDoc (0) If rc <> ARS_OLE_RC_SUCCESS Then MsgBox "ERROR" End End If . .