[英]Outlook Web Add-In - Is it possible to access settings within the Manifest from within a Javascript function?
I know this is possible when developing a VSTO as you can declare settings in your app.config, and then reference these settings in C# by doing something like Properties.Settings.MadeUpSetting.我知道在开发 VSTO 时这是可能的,因为您可以在 app.config 中声明设置,然后通过执行 Properties.Settings.MadeUpSetting 之类的操作在 C# 中引用这些设置。
But i am wondering is this possible when using a web add in?但我想知道在使用 web 插件时这可能吗? My use case is that different people will have different requirements when using this add in, so i presumed the manifest is where i would declare the settings (whose values i can change to suit user A or user B) and then reference them in the JS, but im not sure if this can be done?
我的用例是不同的人在使用这个插件时会有不同的要求,所以我假设清单是我声明设置的地方(我可以更改其值以适合用户 A 或用户 B)然后在 JS 中引用它们,但我不确定这是否可以做到? I am new to this, so any steps in the right direction are much appreciated!
我对此并不陌生,因此非常感谢朝着正确方向迈出的任何步骤!
Thanks谢谢
This is similar to another Stack Overflow post .这类似于另一个Stack Overflow 帖子。 A possible way to achieve this scenario would be to add query parameters in the URLs in the manifest.
实现这种情况的一种可能方法是在清单的 URL 中添加查询参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.