_Application3.IsDestinationReachable 方法 (String)

获取一个值,指明从客户端计算机是否可以连接到目标计算机的指定统一资源定位器 (URL)、通用命名约定 (UNC) 路径或 IP 地址。

命名空间:  Microsoft.Office.Interop.InfoPath.SemiTrust
程序集:  Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)

语法

声明
Function IsDestinationReachable ( _
    bstrDestination As String _
) As Boolean
用法
Dim instance As _Application3
Dim bstrDestination As String
Dim returnValue As Boolean

returnValue = instance.IsDestinationReachable(bstrDestination)
bool IsDestinationReachable(
    string bstrDestination
)

参数

  • bstrDestination
    类型:System.String

    指定要检查网络连接的位置。IP 地址、UNC 路径或 URL 都是可以接受的值。

返回值

类型:System.Boolean
如果目标计算机可以访问,则为 true;否则,为 false。

实现

_Application2.IsDestinationReachable(String)

备注

为 bstrDestination 指定的值必须是一个包含服务器名称和共享名的 UNC 路径(如 @"\\MyServer\MyShare"),或者是一个以以下协议标识符之一开头的 URL:http、https 或文件。

重要

此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。

另请参阅

引用

_Application3 接口

_Application3 成员

IsDestinationReachable 重载

Microsoft.Office.Interop.InfoPath.SemiTrust 命名空间