初学者的帮助 [英] Beginner help
问题描述
我正在开发一个非常简单的WHS 2011加载项,我在查找帮助我的文档时遇到了一些麻烦。 这个加载项的基础是我希望它读取存储在共享中的一些XML文件(特别是音乐,视频
和图片),解析它们并在列表中显示信息子。标签 我已经将模板用于带有列表子选项卡的顶级选项卡,但是我很难找到有关共享位置等文档的文档。 我知道在Windows
客户端中,您可以使用环境已知文件夹值来获取用户的"我的音乐"文件夹,但我找不到类似这样的服务器。
I'm starting development of a very simple WHS 2011 add-in and I'm having some trouble finding documentation to help me. The basics of this add-in is that I want it to read in a few XML files that are stored on the shares (particularly Music, Video and Pictures), parse them out and display the info in a list sub-tab. I've used the template for the top-level tab with list sub-tab, but I'm having a hard time finding documentation for things like the location of the shares. I know that in Windows client, you can use Environment known folders values to get things like the user's My Music folder, but I can't find anything like this for the server.
我的C#选项卡在不需要硬路径的情况下从共享中读取文件夹的推荐方法是什么(如果用户将共享移动到其他硬盘驱动器,不要让它搞砸了)? 甚至不仅仅是某人的回答,我更喜欢链接到
的文档或API,所以我可以自己解决。
What would be the recommended way for my C# tab to read a folder from a share without it needing a hard path (don't want it messed up if the user moves the share to a different hard drive)? Even more than an answer from someone, I'd prefer a link to the docs or APIs for this so I can figure it out myself.
提前致谢!
Nick
推荐答案
嗨尼克,
完整的参考资料可以在这里找到:
http://msdn.microsoft.com/en-us/library/aurora_sdk_mref_reference_home.aspx
我认为它如果你看一下StorageManager类会很好:
http://msdn.microsoft.com/en-us/library/microsoft.windowsserversolutions.storage.storagemanager_members.aspx
I think it would be good if you look at the class StorageManager: http://msdn.microsoft.com/en-us/library/microsoft.windowsserversolutions.storage.storagemanager_members.aspx
它有一个属性'Folders'。
It has a property 'Folders'.
干杯,
尼克
这篇关于初学者的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!