3.2.4.2.45.2 ClassificationReportFormats (put) (Opnum 8)

The ClassificationReportFormats (put) method sets the list of report formats that will be created when classification is run and returns S_OK upon successful completion.

 [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x01))] HRESULT ClassificationReportFormats(
   [in] SAFEARRAY(VARIANT) formats
 );

formats: Contains the array of report formats that will be created when classification is run.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80070057

E_INVALIDARG

One or more values specified in the formats parameter is not a valid FsrmReportFormat (section 2.2.1.2.14) value.

Upon receiving this message, the server MUST validate parameters:

  • Verify that formats contains valid FsrmReportFormat (section 2.2.1.2.14) values. If any one of the formats are FsrmReportFormat_Unknown, the parameter MUST be considered an invalid value.

If any validation fails, the server MUST terminate processing and return a nonzero error code.

 The server MUST set the Default Classification Job's Classification Job.Formats list used for classification to formats.