This documentation is archived and is not being maintained.

DiscussionThread Class

A discussion is a comment thread associated with a block of code, a file or a code review.

System.Object
  Microsoft.TeamFoundation.Discussion.Client.DiscussionThread

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

public sealed class DiscussionThread

The DiscussionThread type exposes the following members.

  NameDescription
Public propertyIdThe unique Id of a discussion. Id is 0 when the discussion is created and is assigned to a unique value after it is saved to the server.
Public propertyItemPathServer path of the file in which the discussion occurs.
Public propertyLastUpdatedDateTime when the discussion is last updated on this client. This property only is updated when the client polls for updates.
Public propertyNeedsSaveTrue if the discussion has changed and can be saved to the local store.
Public propertyPositionPosition in the file of the discussion.
Public propertyPublishedDateTime when the discussion is published and can be viewed by others.
Public propertyReadStatusTracks whether the discussion has been read.
Public propertyRevisionRevision is incremented on the server every time a discussion is published. However, a publish call will not update the revision of the client discussion. The client revision only is updated when the client polls for updates.
Public propertyRootCommentThe root comment of the discussion. Setter only works for the first time only, when the RootComment is null, to ensure the discussion's threaded comments cannot be updated.
Public propertySavedDateThe DateTime of when the discussion was saved locally.
Public propertySeverityIndicates the severity of the discussion.
Public propertyStatusIndicates the status of the discussion.
Public propertyVersionUriUri of the shelveset or the changeset associated with the discussion.
Public propertyWorkItemIdWorkItem Id of the code review request associated with the discussion.
Top

  NameDescription
Public methodAddComment(Comment, Comment)Adds a given comment to this discussion. An exception will be thrown if: 1. The parentComment is null but: a. The discussion has a root comment. b. The discussion is already deleted. 2. The parentComment has not yet been published to the server.
Public methodAddComment(TeamFoundationIdentity, CommentType, String, Comment)Adds a new comment to this discussion. An exception will be thrown if: 1. The parentComment is null but: a. The discussion has a root comment. b. The discussion is already deleted. 2. The parentComment has not yet been published to the server.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
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: