开发者

Is there a way to list the properties of an indexing catalog?

开发者 https://www.devze.com 2022-12-19 18:33 出处:网络
I wanted to get list of properties for an Microsoft indexing catalog. Is there a way? If yes how can it be done..?

I wanted to get list of properties for an Microsoft indexing catalog. Is there a way? If yes how can it be done..?

I use C#开发者_开发知识库 3.5


It would appear that the Indexing Service stores the properties in the registry, so unfortunately the best way to enumerate them is to query the registry. The relevant keys can be found here:

HKLM\SYSTEM\CurrentControlSet\Services\ContentIndex

If you know the names for the properties you are interested in, you are probably better off using the AdminIndexServer COM object to query those values through the GetLongProperty and GetSZProperty methods (found in ciodm.dll, which was in C:\WINDOWS\System32 on my computer).

See this reference for more complete info:

http://msdn.microsoft.com/en-us/library/ms692084(VS.85).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号