Search code examples
c#.netras

How to disconnect from internet using C#?


I have a RAS connection and I need disconnect to it using C#. How I do this? Currently I'm using dotRas library to handling ras connections.


Solution

  • Based on this documentation you should just call the RasHangUp function.