Comment Class
A comment is a part of a discussion. When a discussion is initiated, it should have a root comment by the initiator, and other comments by the contributors.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.Discussion.Client.Comment
Namespace: Microsoft.TeamFoundation.Discussion.Client
Assembly: Microsoft.TeamFoundation.Discussion.Client (in Microsoft.TeamFoundation.Discussion.Client.dll)
Syntax
'Declaration
Public NotInheritable Class Comment
public sealed class Comment
public ref class Comment sealed
[<Sealed>]
type Comment = class end
public final class Comment
The Comment type exposes the following members.
Properties
Name | Description | |
---|---|---|
Author | The person who creates the comment. | |
CommentType | Indicates whether the comment is a text or a code change, and so on | |
Content | The content of the comment. | |
Discussion | This is a client-only property to reference the discussion thread of this comment entry. | |
DiscussionId | Id of the discussion that owns the comment. | |
Id | The Id of a a comment. Id is 0 when the comment is first created and is assigned to an incrementing value after it is saved to the server. | |
IsDeleted | True if the comment is deleted. | |
NeedsSave | True if the comment has changed and can be saved to the local store. | |
ParentComment | The direct parent comment of the comment. | |
PublishedDate | Time when the comment is published and can be viewed by others. | |
SavedDate | The DateTime of when the comment was saved locally. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetChildComments | Returns the direct child comments of this comment. The method wraps a copy of the list of child comments in a readonly collection. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | (Overrides Object.ToString().) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.