Result GetMbCheckSum(MbCheckSumId tMbCheckSum, GetMbCheckSumArg tArg)
tMbCheckSum. Moniker for working with checksums.
tArg. Operation execution parameters.
The GetMbCheckSum operation gets information about the objects, for which checksums are performed.
To execute the operation, in the tMbCheckSum field specify moniker for working with checksums, and in the tArg field specify parameters for getting information about objects. The moniker can be obtained on executing the OpenMbCheckSum operation. The operation results in the information about objects.
Below is the example of getting information about the objects, for which checksums are performed. The request contains moniker for working with checksums. The response contains the obtained information.
{
"GetMbCheckSum" :
{
"tMbCheckSum" :
{
"id" : "S1!M!S!MbCheckSum2"
},
"tArg" :
{
"pattern" :
{
"itemsOperation" : "Get"
}
}
}
}
{
"GetMbCheckSumResult" :
{
"id" :
{
"id" : "S1!M!S!MbCheckSum2"
},
"meta" :
{
"items" :
{
"it" :
[
{
"k" : "8788",
"id" : "OBJ8788",
"n" : "Form",
"vis" : "1",
"status" : "Identical",
"hash" : "BrLrPuFqHlGtJzNsAoAnByNoDkMpBsGx",
"object" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "OBJ8788",
"n" : "Form",
"k" : "8788",
"c" : "1538",
"p" : "8777",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
}
},
{
"k" : "8784",
"id" : "OBJ8784",
"n" : "Dashboard",
"vis" : "1",
"status" : "Identical",
"hash" : "EpByCwIkDxBpKwLwOpAoEpGvEmCtOmDx",
"object" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "1",
"@hf" : "0",
"i" : "OBJ8784",
"n" : "Dashboard",
"k" : "8784",
"c" : "8448",
"p" : "8777",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
}
}
]
}
}
}
}
public static GetMbCheckSumResult GetCheckSum(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetMbCheckSum()
{
tArg = new GetMbCheckSumArg()
{
pattern = new MbCheckSumMdPattern()
{
itemsOperation = ListOperation.Get
},
},
tMbCheckSum = new MbCheckSumId() { id = moniker }
};
// View information about checksums
var result = somClient.GetMbCheckSum(tGet);
return result;
}
See also: