SearchResult.Path プロパティ
アセンブリ: System.DirectoryServices (system.directoryservices.dll 内)



次の例は、SearchResult の例の抜粋です。元の例は、目的のパスを持つ新しい DirectoryEntry オブジェクトを作成し、FindOne メソッドを使用して検索を実行します。この例では、検索を実行した後、GetDirectoryEntry メソッドを使用して、検索結果に示されるライブ ディレクトリ エントリを取得します。
この例では、検索結果から Path プロパティを解析する方法を示します。
Dim mySearchResultPath As String = mySearchResult.Path Console.WriteLine("The path for the 'mySearchResult' search result is : {0}" + _ ControlChars.Newline, mySearchResultPath) string mySearchResultPath = mySearchResult.Path; Console.WriteLine("The path for the 'mySearchResult' search " + "result is : {0}\n", mySearchResultPath); String^ mySearchResultPath = mySearchResult->Path; Console::WriteLine("The path for the 'mySearchResult' search result is : {0}\n", mySearchResultPath);

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- SearchResult.Path プロパティのページへのリンク