Udostępnij za pośrednictwem


Metoda DiscussionThread.AddComment — (Comment, Comment)

Dodaje dany komentarz do dyskusji.

Wyjątek będzie generowany, jeśli: 1.parentComment Ma wartość null, ale:.Dyskusja ma komentarz głównego.

b.Skreśla się już dyskusji.

2.parentComment Nie została jeszcze opublikowana na serwerze.

Przestrzeń nazw:  Microsoft.TeamFoundation.Discussion.Client
Zestaw:  Microsoft.TeamFoundation.Discussion.Client (w Microsoft.TeamFoundation.Discussion.Client.dll)

Składnia

'Deklaracja
Public Function AddComment ( _
    comment As Comment, _
    parentComment As Comment _
) As Comment
public Comment AddComment(
    Comment comment,
    Comment parentComment
)

Parametry

Wartość zwracana

Typ: Microsoft.TeamFoundation.Discussion.Client.Comment
Dodaje nowy komentarz.

Uwagi

Metoda ta nie powoduje podróż serwera.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

DiscussionThread Klasa

Przeciążenie AddComment

Przestrzeń nazw Microsoft.TeamFoundation.Discussion.Client