C#
C#
Transition from Cert.GetValidFromDt to Cert.ValidFromStr
Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.Chilkat C# Downloads
Chilkat.Cert cert = new Chilkat.Cert();
// ------------------------------------------------------------------------
// The GetValidFromDt method is deprecated:
Chilkat.CkDateTime ckdt1 = cert.GetValidFromDt();
if (cert.LastMethodSuccess == false) {
Debug.WriteLine(cert.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using the ValidFromStr property
Chilkat.CkDateTime ckdt2 = new Chilkat.CkDateTime();
ckdt2.SetFromRfc822(cert.ValidFromStr);