Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在Manatee.Trello中编辑注释值?_C#_Manatee.trello - Fatal编程技术网

C# 如何在Manatee.Trello中编辑注释值?

C# 如何在Manatee.Trello中编辑注释值?,c#,manatee.trello,C#,Manatee.trello,我有一个意见,我想能够修改,但我不知道如何处理 以下是我到目前为止所做的尝试: using Manatee.Trello; public class MyClass { //identification is done beforehand as per Manatee.Trello's wiki Card c = new Card(existingCardID); foreach(Action comment in card.Comments) {

我有一个意见,我想能够修改,但我不知道如何处理

以下是我到目前为止所做的尝试:

using Manatee.Trello;

public class MyClass
{
     //identification is done beforehand as per Manatee.Trello's wiki
     Card c =  new Card(existingCardID);
     foreach(Action comment in card.Comments)
     {
         comment.Data.Value="empty comment";
     }
}
但是,
Action.Data.Value
只有
get
功能。使用此库更新注释数据的正确方法是什么?

Updated! 如果操作不是注释,您可能会从Trello处得到错误

我将在wiki中添加一个注释。我意识到这有点隐蔽

编辑2,我想。
我最近发布了Manatee.trellov1.16.0,它解决了这个错误。如上所述使用它

你不应该发布非答案。您应该删除此内容并作为注释重新发布。@Enigmativity,从技术上讲,这是一个答案。这是唯一的答案。“你不能做你想做的。”我尝试了你的解决方案。它确实会编译,但在运行时,我从Manatee收到一个错误。Trello:
ValidationException'1:'someTextValue'不是有效值。Manatee.Trello.ActionData.set_Text(System.String value)
请转到my github repo并创建一个问题。已提交。顺便说一句,感谢您为这个库所做的工作。尽管有这个问题,它还是给了我很大的帮助:)我已经为您更新了我的答案。我找到了解决办法。
action.Data.Text = "updated comment";