1
Windows Search Serviceを使用して、ItemName
のようなドキュメントのメタデータを取得して取得します。Windows Search Service:テキストを取得する
テキストを取得する方法がありますか?snip of the text
が見つかりましたので、ユーザーにコンテキストを表示できますか?
string connectionString = "Provider=Search.CollatorDSO.1;Extended Properties=\"Application=Windows\"";
using (OleDbConnection connection = new OleDbConnection(connectionString))
{
string Query = @"SELECT System.ItemName, System.ItemPathDisplay, System.Title, System.ItemUrl FROM SystemIndex WHERE scope ='file:c:\Index' and FREETEXT('Happy')";
OleDbCommand command = new OleDbCommand(query, connection);
connection.Open();
....