This documentation is archived and is not being maintained.
Comment Class
Visual Studio 2013
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.
Namespace: Microsoft.TeamFoundation.Discussion.Client
Assembly: Microsoft.TeamFoundation.Discussion.Client (in Microsoft.TeamFoundation.Discussion.Client.dll)
The Comment type exposes the following members.
| 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. |
| 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 the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | (Overrides Object.ToString.) |
Show:
