(C#) Transition from Crypt2.LastJsonData to Crypt2.GetLastJsonData
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData. Note: This example requires Chilkat v11.0.0 or greater.
Chilkat.Crypt2 crypt2 = new Chilkat.Crypt2();
// ...
// ...
// ------------------------------------------------------------------------
// The LastJsonData method is deprecated:
Chilkat.JsonObject jsonObj = crypt2.LastJsonData();
if (crypt2.LastMethodSuccess == false) {
Debug.WriteLine(crypt2.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using GetLastJsonData.
// Your application creates a new, empty JsonObject object which is passed
// in the last argument and filled upon success.
Chilkat.JsonObject jsonOut = new Chilkat.JsonObject();
bool success = crypt2.GetLastJsonData(jsonOut);
if (success == false) {
Debug.WriteLine(crypt2.LastErrorText);
return;
}
|