次の方法で共有


_Application2.IsDestinationReachable メソッド

指定した接続先コンピュータの Uniform Resource Locator (URL)、Universal Naming Convention (UNC) パス、または IP アドレスに、クライアント コンピュータから接続できるかどうかを示す値を取得します。

このメソッドは、CLS に準拠していません。  

名前空間: Microsoft.Office.Interop.InfoPath.SemiTrust
アセンブリ: Microsoft.Office.Interop.InfoPath.SemiTrust (microsoft.office.interop.infopath.semitrust.dll 内)

構文

'宣言
<DispIdAttribute(16)> _
Function IsDestinationReachable ( _
    bstrDestination As String _
) As Boolean
'使用
Dim instance As _Application2
Dim bstrDestination As String
Dim returnValue As Boolean

returnValue = instance.IsDestinationReachable(bstrDestination)
[DispIdAttribute(16)] 
bool IsDestinationReachable (
    string bstrDestination
)

パラメータ

  • bstrDestination
    ネットワーク接続を検査する場所を指定します。指定できる値は、IP アドレス、UNC パス、または URL です。

戻り値

接続先コンピュータが到達可能な場合は true、それ以外の場合は false

コメント

UNC および URL の文字列の場合、有効な値はサーバー名だけを含む文字列です (たとえば、http://MyServer や \\MyServer)。http://MyServer/MyVirtualDirectory や \\MyServer\MyShare などの値は、有効とは見なされません。

メモ重要 :

このメンバは、現在開いているフォームと同じドメイン内で実行されているフォーム、またはドメインを越えたアクセス許可を付与されているフォームだけがアクセスできます。

関連項目

参照

_Application2 インターフェイス
_Application2 のメンバ
Microsoft.Office.Interop.InfoPath.SemiTrust 名前空間