SocketWrench .NET Edition

InternetDialer.AutoDial Property

Enable and disable autodialing on the local system.

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

Property Value

A boolean value which specifies if autodialing has been enabled.

Remarks

The AutoDial property can be used to determine if autodialing is enabled or disabled on the current system. When autodialing is enabled and an application attempts to establish a connection over the Internet, a dialog box will be displayed asking the user if they want to connect to their default service provider. This property will return true if autodialing is currently enabled, or false if it has been disabled.

Setting the AutoDial property allows an application to change the autodial settings for the current user. Setting the property value to true specifies that you wish to enable autodialing, and the system will prompt the user to establish a dial-up connection when necessary. Setting the property to false disables autodialing, and prevents the system from prompting the user. This can be beneficial if your application needs to run in an unattended mode. If you change the autodial settings for the user, it is recommended that you restore them to their original value before the application terminates.

If the autodial settings cannot be changed by the current user, an exception will be generated.

See Also

InternetDialer Class | SocketTools Namespace