This documentation is archived and is not being maintained.

Application.IsDestinationReachable Method

Office 2007
Returns a Boolean 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.

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.IsDestinationReachable(bstrDestination)

expression   An expression that returns a Application object.

Parameters

NameRequired/OptionalData TypeDescription
bstrDestinationRequiredStringSpecifies the location to check for network connectivity. IP addresses, UNC paths, and URLs are acceptable values.

Return Value
Boolean

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.

Security Level 2: 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.




Show: