DiscussionThread.AddComment 方法 (Comment, Comment)
添加给定的注释。此讨论。
将会引发异常,则:1. parentComment 为空,但:a. 讨论具有根注释。
b. 讨论已删除。
2. parentComment 未发布到服务器。
命名空间: Microsoft.TeamFoundation.Discussion.Client
程序集: Microsoft.TeamFoundation.Discussion.Client(在 Microsoft.TeamFoundation.Discussion.Client.dll 中)
语法
声明
Public Function AddComment ( _
comment As Comment, _
parentComment As Comment _
) As Comment
public Comment AddComment(
Comment comment,
Comment parentComment
)
参数
- comment
类型:Microsoft.TeamFoundation.Discussion.Client.Comment
要添加的注释。
- parentComment
类型:Microsoft.TeamFoundation.Discussion.Client.Comment
特定注释的父级。如果为 null,新注释将作为根。
返回值
类型:Microsoft.TeamFoundation.Discussion.Client.Comment
添加的新注释。
备注
此方法不对服务器行程。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。