次の方法で共有


_Application3.IsDestinationReachable(String) メソッド

定義

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

public:
 bool IsDestinationReachable(System::String ^ bstrDestination);
public bool IsDestinationReachable (string bstrDestination);
abstract member IsDestinationReachable : string -> bool
Public Function IsDestinationReachable (bstrDestination As String) As Boolean

パラメーター

bstrDestination
String

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

戻り値

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

実装

注釈

bstrDestination 指定する値は、サーバー名と共有名を含む UNC パス (@"\\MyServer\MyShare"など) か、http、https、またはファイルのいずれかのプロトコル識別子で始まる URL である必要があります。

重要: このメンバーにアクセスできるのは、現在開いているフォームと同じドメインで実行されているフォーム、またはクロスドメインアクセス許可が付与されているフォームのみです。

適用対象