Device Event
Fired for every dial device when the ListDevices method is called.
Syntax
public event OnDeviceHandler OnDevice; public delegate void OnDeviceHandler(object sender, NetdialDeviceEventArgs e); public class NetdialDeviceEventArgs : EventArgs { public string DeviceName { get; } public string DeviceType { get; } }
Public Event OnDevice As OnDeviceHandler Public Delegate Sub OnDeviceHandler(sender As Object, e As NetdialDeviceEventArgs) Public Class NetdialDeviceEventArgs Inherits EventArgs Public ReadOnly Property DeviceName As String Public ReadOnly Property DeviceType As String End Class
Remarks
DeviceName provides the name of the device, and DeviceType provides the corresponding device type (e.g. 'modem').