当前位置: 代码迷 >> 综合 >> 用My.Computer.Network.Ping 方法来判断远程计算机是否可用
  详细解决方案

用My.Computer.Network.Ping 方法来判断远程计算机是否可用

热度:44   发布时间:2024-01-13 02:46:49.0

My.Computer.Network.Ping 方法

 

'  Usage

Dim  value  As   Boolean   =  My.Computer.Network.Ping(hostNameOrAddress)

Dim  value  As   Boolean   =  My.Computer.Network.Ping(address)

Dim  value  As   Boolean   =  My.Computer.Network.Ping(hostNameOrAddress ,timeout)

Dim  value  As   Boolean   =  My.Computer.Network.Ping(address ,timeout)

'  Declaration

Public   Function Ping( _

   
ByVal hostNameOrAddress As String _

As Boolean

' -or-

Public Function Ping( _

   
ByVal address As System.Uri _

  相关解决方案