在.net 3.5中是Interop.MSWinsock.dll支持 [英] is Interop.MSWinsock.dll supports in .net 3.5

查看:76
本文介绍了在.net 3.5中是Interop.MSWinsock.dll支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想知道Interop.MSWinsock.dll是否支持.net 3.5。我必须迁移旧的套接字连接代码。

Hi,
I want to know if Interop.MSWinsock.dll supports in .net 3.5. I have to migrate an old code of socket connection.

推荐答案

您不应该通过interop包装器使用某些COM类,而是使用<中的本机.NET类a href =https://msdn.microsoft.com/en-us/library/system.net.sockets(v=vs.110).aspx> System.Net.Sockets [ ^ ]命名空间......

为你挑选合适的课程并使用它......
You should not use some COM classes via an interop wrapper, but use the native .NET classes in the System.Net.Sockets[^] namespace...
Pick the right class for you and use it...


这篇关于在.net 3.5中是Interop.MSWinsock.dll支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆