.NET和OleDbQueries中用于Windows桌面Serach的C#包装程序 [英] C# Wrapper for Windows Desktop Serach in .NET and OleDbQueries

查看:58
本文介绍了.NET和OleDbQueries中用于Windows桌面Serach的C#包装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我前一段时间开始使用.NET,只是想给C#中的WDS一个机会.但是使用字符串包括所有属性,转换结果,检查null等等似乎很繁琐....

从来没有人为此目的编写过一种包装器.我的意思是,有帮手"从示例中删除,但将字符串连接起来,例如:queryHelper.QuerySelectColumns ="System.ItemPathDisplay," + sortCol;看起来真的不太舒服.特别是如果您考虑可能的参数数量和所有可能的强制转换...

所有示例都限于此类基本"语法.情况,并且*符号是不可能的(对于如此众多的属性,这是可以理解的).因此,是否有任何C#包装器.如果没有,我强烈建议您投入一些资源(一个实习生,一个月)来编写更多示例,甚至是包装.新的操作系统非常关注搜索,但是有关此主题的资源并不那么详尽. (而且Windows 7中的新GUI太可怕了,因此,我正在写自己的:-)

Chris

顺便说一句,如果您需要GUI建议:复选框!诸如上周编制索引"之类的属性.搜索助手(没有狗,但是有一个对话框).有点像XP高级搜索,这很好,但是可以降低800.000个文件的速度:-)

Hi,
I started with .NET a while ago, and just thought of giving WDS in C# a chance. But it seems very tedious to include all properties using strings, casting the results, checking for null, and so on....

Has nobody ever written a kind of wrapper for this purpose. I mean yeah, there is the "helper" from the example, but concatening string like this queryHelper.QuerySelectColumns = "System.ItemPathDisplay," + sortCol; does not really look comfortable. Especially if you think about the possible number of arguments and all the possible casts...

All examples are limited to such "basic" cases, and * notation is not possible (understandable with such a big number of properties). So, is there any C# wrapper. If not, I would strongly encourage you to invest some ressource (one intern, one month) to write a litte bit more examples or even a wrapper. The new operating systems have so much focus on search, but the ressources about this topic are not that exhaustive. (And the new GUI in windows 7 is horrible, for this reason I am writing my own :-)

Chris

Btw, if you need GUI suggestions: Checkboxes! Properties like "indexed last week". An search assistant (NO dog, but a dialog). A little bit like in XP advanced search, that was nice but to slow for 800.000 files :-)

推荐答案

托马斯,谢谢您的建议. br/>我们确实有一个C#示例,用于通过OLE-DB接口查询索引:
Thomas, thanks for your suggestions.
We do have a C# sample for querying the index through the OLE-DB interface:
http://msdn.microsoft.com/en-us/library/dd940342(VS.85).aspx

Let me know if you have any questions.
Thanks,
Andrei


这篇关于.NET和OleDbQueries中用于Windows桌面Serach的C#包装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆