Udostępnij za pośrednictwem


Klasa Comment

Reprezentuje komentarz, który test projektanta do testu wydajności sieci Web.

Hierarchia dziedziczenia

Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTestItem
    Microsoft.VisualStudio.TestTools.WebTesting.Comment

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.WebTesting
Zestaw:  Microsoft.VisualStudio.QualityTools.WebTestFramework (w Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Składnia

'Deklaracja
<SerializableAttribute> _
Public Class Comment _
    Inherits WebTestItem
[SerializableAttribute]
public class Comment : WebTestItem
[SerializableAttribute]
public ref class Comment : public WebTestItem
[<SerializableAttribute>]
type Comment =  
    class 
        inherit WebTestItem 
    end
public class Comment extends WebTestItem

Typ Comment uwidacznia następujące elementy członkowskie.

Konstruktorzy

  Nazwa Opis
Metoda publiczna Comment() Inicjuje nowe wystąpienie Comment klasy.
Metoda publiczna Comment(String) Inicjuje nowe wystąpienie Comment klasy przy użyciu podanego ciągu.

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna CommentText Zwraca lub ustawia tekst komentarza.
Właściwość publiczna ItemId Badanie sekwencji od zera numer zapasu w wydajności sieci Web. (Odziedziczone z WebTestItem).

Początek

Metody

  Nazwa Opis
Metoda publiczna Clone Tworzy nowy Comment to jest kopia bieżącej Comment. (Zastępuje WebTestItem.Clone()).
Metoda publiczna Equals Determines whether the specified object is equal to the current object. (Odziedziczone z Object).
Metoda chroniona Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object).
Metoda publiczna GetHashCode Serves as the default hash function. (Odziedziczone z Object).
Metoda publiczna GetType Gets the Type of the current instance. (Odziedziczone z Object).
Metoda chroniona MemberwiseClone Creates a shallow copy of the current Object. (Odziedziczone z Object).
Metoda publiczna RuntimeClone Zwraca klonu tego obiektu w czasie wykonywania. (Odziedziczone z WebTestItem).
Metoda publiczna ToString Returns a string that represents the current object. (Odziedziczone z Object).

Początek

Uwagi

Aby dodać komentarz do wynik testu wydajności sieci Web z kodu testu wydajności sieci Web, należy wywołać AddCommentToResult metody.

Bezpieczeństwo wątku

Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.

Zobacz też

Informacje

Przestrzeń nazw Microsoft.VisualStudio.TestTools.WebTesting