禁用 Outlook 安全消息框

发布于 2024-08-22 14:11:17 字数 231 浏览 2 评论 0原文

我正在开发 Outlook 2007 插件,并面临 Outlook Security MessageBoxes 的问题。 我知道我可以从信任中心禁用它并将允许编程访问设置为 true, 但我想通过代码禁用它。

如何通过代码禁用 Outlook Security MessageBox?

注意: 我正在使用 C# 和 VSTO。

I am developing outlook 2007 add in, and facing problems with Outlook Security MessageBoxes.
I know that i can disable it from the trust center and set allow programmatic access to true,
but i want to disable it by code.

How can i disable Outlook Security MessageBox by code?

Note: I am using C# and VSTO.

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

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

发布评论

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

评论(1

时光瘦了 2024-08-29 14:11:17

好的,

当您尝试访问邮件的某些属性(主要是电子邮件地址)时,安全防护就会弹出。您可以使用 mapilib 来停止它或使用 兑换的安全邮件。或者

您可以使用邮件项目 PropertyAccessor 来访问底层Mapi 属性

对于您需要 PR_EMAIL_ADDRESS(或 PR_SMTP_ADDRESS)的“TO”,

mailItem.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3003001F"); 

我建议您下载 Dimitry 的 Outlook 间谍 如果您正在开发 Mapi/outlook 等,那么它是“the”工具。

然后您可以查找 Mapi 属性及其 id 来获取其他属性

Ok,

The security guard pops up when you try to access certain properties of the mail mainly around the email addresses. You can use mapilib to stop it or use redemption's safe mail item. or

You can use the mail items PropertyAccessor to gain access to the underlying Mapi properties

For the "TO" you need PR_EMAIL_ADDRESS (or PR_SMTP_ADDRESS)

mailItem.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3003001F"); 

I would suggest that you download Dimitry's Outlook spy its "the" tool if you are developing Mapi/outlook etc.

You can then look up the Mapi properties and their ids to get the others

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