Share via


_NetworkState.IsDestinationReachable Method

Gets a value that indicates whether a connection can be made to the specified network destination.

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 _NetworkState
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 as a Uniform Resource Locator (URL), universal naming convention (UNC) path, or IP address.

Return Value

Type: System.Boolean
true if a connection can be made to the specified URL, UNC path, or IP address; 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.

See Also

Reference

_NetworkState Interface

_NetworkState Members

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace