Validates that the content location recorded in the object store matches the actual location on the
physical device. For non-federated content, this method also verifies that the content size is the same as
when the content was created. See the validateContent(validations) form of this method
for a list of exception codes that may result from a failed validation attempt.
Namespace:
FileNet.Api.AdminCharacteristics of ValidateContent include:
- Validates documents and annotations.
- Cannot validate content in a database storage area.
- Only verifies that federated content exists (doesn't verify its size).
- Requires VIEW_CONTENT access to the Document or Annotation object.
- Throws an EngineRuntimeException after an unsuccessful validation. (The exception message contains enough information to manually restore the invalid content.)
Assembly: FileNet.Api (in FileNet.Api.dll)
Syntax
Visual Basic (Declaration) |
---|
Sub ValidateContent ( _ contentObject As IIndependentlyPersistableObject, _ contentElementIndex As Integer _ ) |
C# |
---|
void ValidateContent( IIndependentlyPersistableObject contentObject, int contentElementIndex ) |
Visual C++ |
---|
void ValidateContent( IIndependentlyPersistableObject^ contentObject, int contentElementIndex ) |
JavaScript |
---|
function validateContent(contentObject, contentElementIndex); |
Parameters
- contentObject
- Type: FileNet.Api.Core..::.IIndependentlyPersistableObject
- contentElementIndex
- Type: System..::.Int32