Comment Class
Represents a comment that the test designer adds to a Web performance test.
Inheritance Hierarchy
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 | |
---|---|---|
Comment() | Initializes a new instance of the Comment class. | |
Comment(String) | Initializes a new instance of the Comment class using the specified string. |
Top
Properties
Name | Description | |
---|---|---|
CommentText | Gets or sets the text of the comment. | |
ItemId | Zero-based sequence number of the item in the Web performance test. (Inherited from WebTestItem.) |
Top
Methods
Name | Description | |
---|---|---|
Clone | Creates a new Comment that is a copy of the current Comment. (Overrides WebTestItem.Clone().) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RuntimeClone | Returns a clone of this object at run time. (Inherited from WebTestItem.) | |
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.