SetMbCheckSumResult SetMbCheckSum(MbCheckSumId tMbCheckSum, SetMbCheckSumArg tArg)
tMbCheckSum. Moniker for working with checksums.
tArg. Operation execution parameters.
The SetMbCheckSum operation manages performing of checksums for repository objects.
The operation executes the following actions:
Performs checksums for repository objects and saves them to file.
Loads checksums from file and checks repository objects for correspondence to checksums.
To execute the operation, in the tMbCheckSum field specify moniker for working with checksums. The moniker can be obtained on executing the OpenMbCheckSum operation.
To perform checksums, in the tArg.meta.items field specify collection of elements, for each element in the k field specify key of the object, for which checksum is performed. In the tArg.pattern.itemsOperation field specify the Add action. To save checksums to file, set the tArg.meta.save empty field. Executing the operation performs checksums for objects, the result is saved to file. If the tArg.metaGet pattern is defined, the operation results in the tArg.meta.save field, in which the created file moniker is available.
To load checksums from file, set the tArg.meta.load field. Executing the operation loads checksums and repository objects are checked. The check result is available in each element of the tArg.meta.items collection.
Various methods of using the operation are given in the following examples:
Example name |
Performing checksums for repository objects |
Loading checksums from file and checking repository objects |
See also: