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.

Characteristics 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.)

Namespace: FileNet.Api.Admin
Assembly: FileNet.Api (in filenet.api.dll)

Syntax

Visual Basic (Declaration)
Public MustOverride Sub ValidateContent( _ 
   ByVal contentObject As IIndependentlyPersistableObject,  _ 
   ByVal contentElementIndex As Integer _ 
)
C#
public abstract void ValidateContent(
   IIndependentlyPersistableObject contentObject,
   int contentElementIndex
)
C++
public:
 void ValidateContent(
   IIndependentlyPersistableObject contentObject,
   int contentElementIndex
) abstract 
J#
public abstract void ValidateContent(
   IIndependentlyPersistableObject contentObject,
   int contentElementIndex
)
JScript
public abstract  function ValidateContent(
   contentObject : IIndependentlyPersistableObject,
   contentElementIndex : int
)

See Also