<tfoot id='TBOox'></tfoot>

  • <i id='TBOox'><tr id='TBOox'><dt id='TBOox'><q id='TBOox'><span id='TBOox'><b id='TBOox'><form id='TBOox'><ins id='TBOox'></ins><ul id='TBOox'></ul><sub id='TBOox'></sub></form><legend id='TBOox'></legend><bdo id='TBOox'><pre id='TBOox'><center id='TBOox'></center></pre></bdo></b><th id='TBOox'></th></span></q></dt></tr></i><div id='TBOox'><tfoot id='TBOox'></tfoot><dl id='TBOox'><fieldset id='TBOox'></fieldset></dl></div>
    <legend id='TBOox'><style id='TBOox'><dir id='TBOox'><q id='TBOox'></q></dir></style></legend>

      • <bdo id='TBOox'></bdo><ul id='TBOox'></ul>
    1. <small id='TBOox'></small><noframes id='TBOox'>

        如何在 C# 中从 LDAP 读取 TermainsServices IADsTSUserEx 属性?

        How to read TermainsServices IADsTSUserEx Property from LDAP in C#?(如何在 C# 中从 LDAP 读取 TermainsServices IADsTSUserEx 属性?)
        <tfoot id='NR9yv'></tfoot>
          <bdo id='NR9yv'></bdo><ul id='NR9yv'></ul>
              <tbody id='NR9yv'></tbody>

              <small id='NR9yv'></small><noframes id='NR9yv'>

              <legend id='NR9yv'><style id='NR9yv'><dir id='NR9yv'><q id='NR9yv'></q></dir></style></legend>

                  <i id='NR9yv'><tr id='NR9yv'><dt id='NR9yv'><q id='NR9yv'><span id='NR9yv'><b id='NR9yv'><form id='NR9yv'><ins id='NR9yv'></ins><ul id='NR9yv'></ul><sub id='NR9yv'></sub></form><legend id='NR9yv'></legend><bdo id='NR9yv'><pre id='NR9yv'><center id='NR9yv'></center></pre></bdo></b><th id='NR9yv'></th></span></q></dt></tr></i><div id='NR9yv'><tfoot id='NR9yv'></tfoot><dl id='NR9yv'><fieldset id='NR9yv'></fieldset></dl></div>
                  本文介绍了如何在 C# 中从 LDAP 读取 TermainsServices IADsTSUserEx 属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我从 AD 中阅读了以下属性,

                  I have read the following properties from AD,

                  TerminalServicesProfilePath
                  TerminalServicesHomeDirectory
                  TerminalServicesHomeDrive
                  

                  我已经尝试过 DirectoryEntry 和 DirectorySearcher.但它们不包括属性.

                  I've tried DirectoryEntry and DirectorySearcher. But they does not include the properties.

                  我在 vbscript 和 VC 中找到了一些示例来阅读它们.但是我未能使其在 C# 中工作.我错过了一些棘手的事情吗?

                  I found some example in vbscript and VC to read them. However I failed to make it working in C#. Am I missing some tricky thing?

                  我必须在Windows Server"上运行它才能使其工作吗?win XP 可以读取吗?

                  Am I have to run it on "Windows Server" to make it works? Can it be read from win XP?

                  推荐答案

                  具体记不太清了,大概是这样的:

                  I don't remember exactly, but it's something like this:

                  //user is a DirectoryEntry
                  IADsTSUserEx adsiUser = (IADsTSUserEx)user.NativeObject; 
                  

                  然后您可以通过 adsiUser 获取所需的 TerminalServices 属性.

                  then you can get the TerminalServices properties you want via adsiUser.

                  根据我的经验,由于您使用的库,您最好在可以访问 AD 的 Windows Server 上进行开发.那么你可能也会完成上述工作:)

                  From my experience you're better off developing on a Windows Server with access to AD due to the libraries you use. Then you'll probably make the above work, too :)

                  这篇关于如何在 C# 中从 LDAP 读取 TermainsServices IADsTSUserEx 属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding and removing users from Active Directory groups in .NET(在 .NET 中的 Active Directory 组中添加和删除用户)
                  set equality in linq(在 linq 中设置相等)
                  HashSet conversion to List(HashSet 转换为 List)
                  How to set timeout for webBrowser navigate event(如何为 webBrowser 导航事件设置超时)
                  Test whether two IEnumerablelt;Tgt; have the same values with the same frequencies(测试两个IEnumerablelt;Tgt;具有相同频率的相同值)
                  How do you determine if two HashSets are equal (by value, not by reference)?(您如何确定两个 HashSet 是否相等(按值,而不是按引用)?)
                  • <i id='JDF9s'><tr id='JDF9s'><dt id='JDF9s'><q id='JDF9s'><span id='JDF9s'><b id='JDF9s'><form id='JDF9s'><ins id='JDF9s'></ins><ul id='JDF9s'></ul><sub id='JDF9s'></sub></form><legend id='JDF9s'></legend><bdo id='JDF9s'><pre id='JDF9s'><center id='JDF9s'></center></pre></bdo></b><th id='JDF9s'></th></span></q></dt></tr></i><div id='JDF9s'><tfoot id='JDF9s'></tfoot><dl id='JDF9s'><fieldset id='JDF9s'></fieldset></dl></div>

                        <bdo id='JDF9s'></bdo><ul id='JDF9s'></ul>
                        <tfoot id='JDF9s'></tfoot>

                          <legend id='JDF9s'><style id='JDF9s'><dir id='JDF9s'><q id='JDF9s'></q></dir></style></legend>

                            <small id='JDF9s'></small><noframes id='JDF9s'>

                              <tbody id='JDF9s'></tbody>