Partager via


DiscussionThread.AddComment, méthode (Comment, Comment)

Ajoute un commentaire donné à cette discussion.

Une exception est levée si : 1.parentComment est null mais : a.Le thread a un commentaire racine.

b.La description est déjà supprimée.

2.parentComment n'a pas encore été publié sur le serveur.

Espace de noms :  Microsoft.TeamFoundation.Discussion.Client
Assembly :  Microsoft.TeamFoundation.Discussion.Client (dans Microsoft.TeamFoundation.Discussion.Client.dll)

Syntaxe

'Déclaration
Public Function AddComment ( _
    comment As Comment, _
    parentComment As Comment _
) As Comment
public Comment AddComment(
    Comment comment,
    Comment parentComment
)

Paramètres

Valeur de retour

Type : Microsoft.TeamFoundation.Discussion.Client.Comment
Le nouveau commentaire ajouté.

Notes

Cette méthode n'est pas un voyage de serveur.

Sécurité .NET Framework

Voir aussi

Référence

DiscussionThread Classe

AddComment, surcharge

Microsoft.TeamFoundation.Discussion.Client, espace de noms