IDocumentInspector.Inspect Method

Office Developer Reference

Inspects a document for specific information items or document properties by using a custom Document Inspector module.

Aa433548.vs_note(en-us,office.12).gif  Note
The IDocumentInspector object is for the exclusive use of custom Document Inspector module authors and cannot be used with Visual Basic for Applications (VBA).

Syntax

expression.Inspect(Doc, Status, Result, Action)

expression   An expression that returns a IDocumentInspector object.

Parameters

Name Required/Optional Data Type Description
Doc Required Object An object representing the container document.
Status Required MsoDocInspectorStatus An enumeration that represents the results of the inspection.
Result Required String Contains a list of the information items or document properties found in the document.
Action Required String Indicates to the user what action to take based on the results of the inspection.

Return Value
[HRESULT]

Remarks

MsoDocInspectorStatus members

Constant Value
msoDocInspectorStatusDocOk 0
msoDocInspectorStatusIssueFound 1
msoDocInspectorStatusError 2

See Also