<CustomAction Id="SomeName"
Property="setVaues"
Value="LocationData=[LOCATION];NameData=[NAME];"/>
Ex:如果[LOCATION]的值为“ sample; name”,则将值“ sample”分配给LocationData而不是“ sample; name”。半冒号后的所有数据都会被截断。如何解决这个问题?
并且,如下所示,我在“自定义操作”中访问“ LocationData”的值。我看到该值被截断了
[CustomAction]
public static ActionResult MyFunction(Session session)
{
<..some code..>
var locationName = session.CustomActionData["LocationData"];
session.Log("Location Name: " + locationName ); // value after ; is truncated
<..some code..>
// I am getting error if I try to get the value directly without using key value pair as in below line of code
// var locationName = session["LOCATION"];
}