We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Comment Class

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


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

public class Comment : WebTestItem

The Comment type exposes the following members.

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

Public propertyCommentTextGets or sets the text of the comment.
Public propertyItemIdZero-based sequence number of the item in the Web performance test. (Inherited from WebTestItem.)

Public methodCloneCreates a new Comment that is a copy of the current Comment. (Overrides WebTestItem.Clone().)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRuntimeCloneReturns a clone of this object at run time. (Inherited from WebTestItem.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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

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