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";