4
我有一個活動,我宣佈了一個沒有類型的InArgument(因爲我想知道設計時錶達式的類型)。通用InArgument拋出一個異常,試圖獲取值
當我執行的活動我得到這個錯誤在VAR contentTelegram行:
"The argument of type '<type>' cannot be used. Make sure that it is declared on an activity."
這裏是我的代碼:
public InArgument Content { get; set; }
protected override PlcMessage Execute(CodeActivityContext context)
{
try
{
var contentTelegram = Content.Get(context);
return new PlcMessage();
}
catch (Exception ex)
{
throw;
}
}