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.

System.Object
  Microsoft.TeamFoundation.Discussion.Client.Comment

Namespace:  Microsoft.TeamFoundation.Discussion.Client
Assembly:  Microsoft.TeamFoundation.Discussion.Client (in Microsoft.TeamFoundation.Discussion.Client.dll)

public sealed class Comment

The Comment type exposes the following members.

  NameDescription
Public propertyAuthorThe person who creates the comment.
Public propertyCommentTypeIndicates whether the comment is a text or a code change, and so on
Public propertyContentThe content of the comment.
Public propertyDiscussionThis is a client-only property to reference the discussion thread of this comment entry.
Public propertyDiscussionIdId of the discussion that owns the comment.
Public propertyIdThe 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.
Public propertyIsDeletedTrue if the comment is deleted.
Public propertyNeedsSaveTrue if the comment has changed and can be saved to the local store.
Public propertyParentCommentThe direct parent comment of the comment.
Public propertyPublishedDateTime when the comment is published and can be viewed by others.
Public propertySavedDateThe DateTime of when the comment was saved locally.
Top

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetChildCommentsReturns the direct child comments of this comment. The method wraps a copy of the list of child comments in a readonly collection.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToString (Overrides Object.ToString().)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: