ConnectedEntry Event
Fired for every connected device when the ListConnections method is called.
Syntax
public event OnConnectedEntryHandler OnConnectedEntry; public delegate void OnConnectedEntryHandler(object sender, NetdialConnectedEntryEventArgs e); public class NetdialConnectedEntryEventArgs : EventArgs { public object Handle { get; } public string Entry { get; } public string DeviceName { get; } public string DeviceType { get; } public string StatusDescription { get; } }
Public Event OnConnectedEntry As OnConnectedEntryHandler Public Delegate Sub OnConnectedEntryHandler(sender As Object, e As NetdialConnectedEntryEventArgs) Public Class NetdialConnectedEntryEventArgs Inherits EventArgs Public ReadOnly Property Handle As Object Public ReadOnly Property Entry As String Public ReadOnly Property DeviceName As String Public ReadOnly Property DeviceType As String Public ReadOnly Property StatusDescription As String End Class
Remarks
The Handle parameter can be used to disconnect the entry. You should assign Handle to the Handle property and then call the Disconnect method.