Outlook VSTO-允许特定的广告组看到色带
我如何仅通过编程将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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,但是您自己的代码可以轻松执行检查,并使用
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 yourgetVisible
callback again.