DeviceType Property  
 

Gets and sets the device type for the current dial-up networking connection.

Syntax

[form.]object.DeviceType [= devicetype ]

Remarks

The DeviceType property returns the type of device that the connection was established with. Setting this property will change the type of device that will be used to establish the connection. Valid device names are:

Constant Value Description
rasDeviceModem modem An internal or external serial analog modem device, or other serial communications device which supports the AT command set
rasDeviceISDN isdn An ISDN terminal adapter. Note that some ISDN devices, such as the 3Com ImpactIQ are considered modem devices.
rasDeviceX25 x25 An X25 device adapter.
rasDeviceVPN vpn A virtual private network connection.
RasDevicePad pad A packet assembler/disassembler.

Because changing the device type can change the current device name, it is recommended that applications change this property value before changing the value of the DeviceName property.

Data Type

String

See Also

DeviceCount Property, DeviceEntry Property, DeviceName Property