指定した接続先コンピュータの URL (Uniform Resource Locator)、UNC (Universal Naming Convention) パス、または IP アドレスに、クライアント コンピュータから接続できるかどうかを示す値を取得します。
名前空間: Microsoft.Office.Interop.InfoPath
アセンブリ: Microsoft.Office.Interop.InfoPath (microsoft.office.interop.infopath.dll 内)
構文
'宣言
<DispIdAttribute(16)> _
Function IsDestinationReachable ( _
<InAttribute> bstrDestination As String _
) As Boolean
'使用
Dim instance As _Application3
Dim bstrDestination As String
Dim returnValue As Boolean
returnValue = instance.IsDestinationReachable(bstrDestination)
[DispIdAttribute(16)]
bool IsDestinationReachable (
[InAttribute] string bstrDestination
)
パラメータ
- bstrDestination
ネットワーク接続を検査する場所を指定します。指定できる値は、IP アドレス、UNC パス、または URL です。
戻り値
指定した URL、UNC、または IP アドレスへの接続が可能な場合は true、それ以外の場合は false。
コメント
UNC および URL の文字列の場合、有効な値はサーバー名だけを含む文字列です (たとえば、http://MyServer や \\MyServer)。http://MyServer/MyVirtualDirectory や \\MyServer\MyShare などの値は、有効とは見なされません。
関連項目
参照
_Application3 インターフェイス
_Application3 のメンバ
Microsoft.Office.Interop.InfoPath 名前空間