[英]Microsoft USD - Save parameters inside $Settings from C# Code
I want to save different parameters inside $Settings , since it is global and i want to use these values even when the session is transferred that is when it becomes null. 我想在$ Settings内保存不同的参数,因为它是全局的,即使在会话转移为null时,我也想使用这些值。
I am currently doing this, 我目前正在这样做,
var updatedContext = new Context(ctx)
{
[ContextParameterName] = ContextVals
};
FireChangeContext(new ContextEventArgs(updatedContext));
But through this i am only able to save values inside $Context. 但是通过这种方式,我只能在$ Context中保存值。 I want the values to be stored inside $Settings .
我希望将值存储在$ Settings内 。
Looking forward to help. 期待帮助。
You can achieve this through FireRequestAction 您可以通过FireRequestAction实现
FireRequestAction(new RequestActionEventArgs(<<HostedControl>>, <<ActionName>>, <<Your Data>>);
Hosted Control will be Global Manager , Action will be SaveSetting and with that Data you want to store inside Settings. 托管控件将是Global Manager ,操作将是SaveSetting ,您要在其中将数据存储在Settings中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.