SocketTools .NET Edition

InternetDialer.AutoDisconnect Property

Automatically disconnect from the remote server.

[Visual Basic]
Public Property AutoDisconnect As Boolean
[C#]
public bool AutoDisconnect {get; set;}

Property Value

A boolean value that specifies if connections are automatically terminated.

Remarks

The AutoDisconnect property determines if this instance of the class should automatically disconnect from a remote host when the destructor is called, typically when the application terminates. The default value for this property is true.

If a dial-up connection was already established at the time an instance of the class is created, this property will be reset to false, preventing it from automatically disconnecting from the host when it is unloaded. Therefore, to always force the control to automatically terminate a connection when it is unloaded, you must explicitly set the property value to true in your application.

See Also

InternetDialer Class | SocketTools Namespace