Export (0) Print
Expand All

Comment Class

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

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)

[SerializableAttribute]
public class Comment : WebTestItem

The Comment type exposes the following members.

  NameDescription
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.
Top

  NameDescription
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.)
Top

  NameDescription
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.)
Top

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.

Community Additions

ADD
Show:
© 2014 Microsoft