How to convert this code to VB.net.
ServicePointManager.ServerCertificateValidationCallback = delegate(Object obj, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
{
return true;
};
How to convert C# code to VB.net Code
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Fazle Hadi8 reputationPosted Mar 21, 2011, 2:23 AM EDT
ServicePointManager.ServerCertificateValidationCallback = Function(obj As [Object], certificate As X509Certificate, chain As X509Chain, errors As SslPolicyErrors)Return True
End FunctionMartin van Eerde22 reputationPosted Mar 21, 2011, 5:06 AM EDT
Karthikeyan AnbarasanRank #71 · 25.5K reputationPosted Apr 7, 2011, 11:38 PM EDT