_Application2.IsDestinationReachable method

Gets a value indicating whether the specified Uniform Resource Locator (URL), universal naming convention (UNC) path, or IP address of the destination computer can be connected to from the client computer.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
Function IsDestinationReachable ( _
    bstrDestination As String _
) As Boolean
'Usage
Dim instance As _Application2
Dim bstrDestination As String
Dim returnValue As Boolean

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

Parameters

  • bstrDestination
    Type: System.String

    Specifies the location to check for network connectivity. IP addresses, a UNC paths, or a URLs are acceptable values.

Return value

Type: System.Boolean
true if the destination computer is reachable; otherwise, false.

Remarks

The value specified for bstrDestination must be either a UNC path that includes a server name and a share name, such as @"\\\\MyServer\\MyShare", or a URL that begins with one of the following protocol identifiers: http, https, or file.

Important

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

See also

Reference

_Application2 interface

_Application2 members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace