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 | |
---|---|---|
![]() |
Comment() | Inicjuje nowe wystąpienie Comment klasy. |
![]() |
Comment(String) | Inicjuje nowe wystąpienie Comment klasy przy użyciu podanego ciągu. |
Początek
Właściwości
Nazwa | Opis | |
---|---|---|
![]() |
CommentText | Zwraca lub ustawia tekst komentarza. |
![]() |
ItemId | Badanie sekwencji od zera numer zapasu w wydajności sieci Web. (Odziedziczone z WebTestItem). |
Początek
Metody
Nazwa | Opis | |
---|---|---|
![]() |
Clone | Tworzy nowy Comment to jest kopia bieżącej Comment. (Zastępuje WebTestItem.Clone()). |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Odziedziczone z Object). |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object). |
![]() |
GetHashCode | Serves as the default hash function. (Odziedziczone z Object). |
![]() |
GetType | Gets the Type of the current instance. (Odziedziczone z Object). |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Odziedziczone z Object). |
![]() |
RuntimeClone | Zwraca klonu tego obiektu w czasie wykonywania. (Odziedziczone z WebTestItem). |
![]() |
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.