Options

.NET Interop & Delegates

wakestarwakestar Member Posts: 207
edited 2013-04-30 in NAV Three Tier
Hi all

I have the following c-sharp code which I would like to move to NAV2013 and use .NET - Interop.
ServicePointManager.Expect100Continue = false;
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(ValidateRemoteCertificate);

ServicePointManager is in System.dll, v4.0.30319, namespace System.Net

definition of RemoteCertificateValidationCallback:
public delegate bool RemoteCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors);

Is it possible to achieve the same with .NET interop inside NAV2013?
Sign In or Register to comment.