SocketTools .NET Edition

InternetDialer.Disconnect Method 

Terminate the connection with the dial-up networking service provider.

[Visual Basic]
Public Function Disconnect() As Boolean
[C#]
public bool Disconnect();

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

This method may cause the current thread to block as the connection is terminated and the dial-up network device is being reset to its default state. Any active network connections using this dial-up networking connection will be terminated.

See Also

InternetDialer Class | SocketTools Namespace