Hi,
As far as I know, there're only System.Net to provide socket interface. So for more complicated functions like WNetAddconnection() from <winsock.h> or <winsock2.h> you should use P/Invoke