Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

IsAvailable Property

Location

My.Computer.Network.IsAvailable

Syntax

Dim result As Boolean = My.Computer.Network.IsAvailable

Description

The IsAvailable property indicates whether the network connected to the computer is available (TRue) or not (False).

Usage at a Glance

  • This property is read-only.

  • This property will always return False when called by a user who does not have the NetworkInformationPermission permission.

  • This property always returns False from ClickOnce-deployed applications.

Related Framework Entries

  • Microsoft.VisualBasic.Devices.Network.IsAvailable Property

  • System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable Method

See Also

Network Object

Категории