Comment Class

Represents a comment that the test designer adds to a Web performance test.

Inheritance Hierarchy

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

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

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

The Comment type exposes the following members.

Constructors

  Name Description
Public method Comment() Initializes a new instance of the Comment class.
Public method Comment(String) Initializes a new instance of the Comment class using the specified string.

Top

Properties

  Name Description
Public property CommentText Gets or sets the text of the comment.
Public property ItemId Zero-based sequence number of the item in the Web performance test. (Inherited from WebTestItem.)

Top

Methods

  Name Description
Public method Clone Creates a new Comment that is a copy of the current Comment. (Overrides WebTestItem.Clone().)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RuntimeClone Returns a clone of this object at run time. (Inherited from WebTestItem.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

To add a comment to a Web performance test result from Web performance test code, call the AddCommentToResult method.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace