Indicates whether a computer is connected to a network.
' Usage Dim value As Boolean = My.Computer.Network.IsAvailable ' Declaration Public ReadOnly Property IsAvailable As Boolean
IsAvailable always returns False when called from a Click Once application or if the user does not have NetworkInformationPermission.
The following table lists examples of tasks involving the My.Computer.Network.IsAvailable property.
Check whether a computer is connected to a network
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)
The following permissions may be necessary:
Controls the ability to access files and folders. Associated enumeration: Unrestricted.
Controls rights to access HTTP Internet resources. Associated enumeration: Unrestricted.