Outlook VSTO-允许特定的广告组看到色带

发布于 2025-01-26 18:22:55 字数 81 浏览 1 评论 0原文

我如何仅通过编程将VSTO附加色带可见性仅限于特定的广告组?可以直接从功能区XML本身控制吗?该插件分配给整个组织,但需要通过广告组更改功能区可见性

How can I programmatically restrict the VSTO Add-in Ribbon visibility to a specific AD group only? Can this be controlled directly from the Ribbon XML itself? The plugin is distributed to entire org, but need the ribbon visibility to change by AD group

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九命猫 2025-02-02 18:22:55

不,但是您自己的代码可以轻松执行检查,并使用getvisible为您的功能区指定的回调。

最好在Outlook请求功能区之前对检查结果进行检查并缓存检查结果。如果返回功能区后的支票完成,请调用ribbonui.invalidate(),它将再次调用您的getvisible再次回调。

No, but your own code can easily perform the check and show/hide the ribbon using the getVisible callback specified for your ribbon.

Would be a good idea to perform that check asynchronously and cache the check result before the ribbon is requested by Outlook. If the check completes after the ribbon is returned, call RibbonUI.Invalidate(), which would case Outlook to invoke your getVisible callback again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文