Aracılığıyla paylaş


Comment Sınıf

Bir Web performans testi test Tasarımcısı eklediği yorum temsil eder.

Devralma Hiyerarşisi

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

Ad alanı:  Microsoft.VisualStudio.TestTools.WebTesting
Derleme:  Microsoft.VisualStudio.QualityTools.WebTestFramework (Microsoft.VisualStudio.QualityTools.WebTestFramework.dll içinde)

Sözdizimi

'Bildirim
<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

Comment türü aşağıdaki üyeleri ortaya koyar.

Oluşturucular

  Ad Açıklama
Genel yöntem Comment() Yeni bir örneğini başlatır Comment sınıfı.
Genel yöntem Comment(String) Yeni bir örneğini başlatır Comment belirtilen bir dize kullanarak sınıf.

Üst

Özellikler

  Ad Açıklama
Genel özellik CommentText Alır veya açıklama metni ayarlar.
Genel özellik ItemId Sıfır tabanlı sıra numarası öğenin Web performansını sınayın. (WebTestItem kaynağından devralındı.)

Üst

Yöntemler

  Ad Açıklama
Genel yöntem Clone Yeni bir oluşturur Comment yani bir kopyasını geçerli Comment. (WebTestItem.Clone() geçersiz kılınır.)
Genel yöntem Equals Determines whether the specified object is equal to the current object. (Object kaynağından devralındı.)
Korumalı yöntem Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Object kaynağından devralındı.)
Genel yöntem GetHashCode Serves as the default hash function. (Object kaynağından devralındı.)
Genel yöntem GetType Gets the Type of the current instance. (Object kaynağından devralındı.)
Korumalı yöntem MemberwiseClone Creates a shallow copy of the current Object. (Object kaynağından devralındı.)
Genel yöntem RuntimeClone Bu nesnenin bir kopyası zamanında döndürür. (WebTestItem kaynağından devralındı.)
Genel yöntem ToString Returns a string that represents the current object. (Object kaynağından devralındı.)

Üst

Notlar

Yorum bir Web performans test sonucu Web performans test kodu eklemek için arama AddCommentToResult yöntemi.

İş Parçacığı Güvenliği

Bu türün tüm genel statik (Visual Basic'te Shared) üyeleri iş parçacığı açısından güvenlidir. Hiçbir örnek üyesinin iş parçacığı açısından güvenliği garanti edilemez.

Ayrıca bkz.

Başvuru

Microsoft.VisualStudio.TestTools.WebTesting Ad Alanı