Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebTestResponse Class

 

Represents an HTTP response.

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

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTestResponse

[SerializableAttribute]
public class WebTestResponse : ICloneable

NameDescription
System_CAPS_pubpropertyBodyBytes

Gets the raw bytes of the HTTP response body.

System_CAPS_pubpropertyBodyString

Gets a string version of the response body for responses with text, HTML, or XML content types.

System_CAPS_pubpropertyCharacterSet

Gets the character set that is specified in the response headers.

System_CAPS_pubpropertyContentEncoding

Gets the method that is used to encode the body of the response.

System_CAPS_pubpropertyContentLength

Gets the length of the content that is returned by the request.

System_CAPS_pubpropertyContentType

Gets the MIME type of the response body.

System_CAPS_pubpropertyCookies

Gets the cookies associated with the response.

System_CAPS_pubpropertyGuid

System_CAPS_pubpropertyHeaders

Gets the headers associated with the response from the server.

System_CAPS_pubpropertyHtmlDocument

Gets the HtmlDocument created by parsing the response body of a response with HTML or XHTML content type.

System_CAPS_pubpropertyIsBodyEmpty

Gets a value indicating whether the response body is empty.

System_CAPS_pubpropertyIsHtml

Gets a value indicating whether the response body is an HTML document.

System_CAPS_pubpropertyIsText

Gets a value indicating whether the response body is a text document.

System_CAPS_pubpropertyIsXml

Gets a value that indicates whether the response is XML.

System_CAPS_pubpropertyLastModified

Gets the last date and time that the contents of the response were modified.

System_CAPS_pubpropertyMethod

Gets the method that is used to return the response.

System_CAPS_pubpropertyProtocolVersion

Gets the version of the HTTP protocol that is used in the response.

System_CAPS_pubpropertyResponseUri

Gets the URI of the Internet resource that responded to the request.

System_CAPS_pubpropertyServer

Gets the name of the server that sent the response.

System_CAPS_pubpropertyStatistics

Gets detailed information gathered during the execution of the request.

System_CAPS_pubpropertyStatusCode

Gets the status of the response.

System_CAPS_pubpropertyStatusDescription

Gets the status description returned with the response.

System_CAPS_pubpropertyXmlDocument

Gets a XmlDocument representing the response body if the content type indicated the response was XML.

NameDescription
System_CAPS_pubmethodClone()

Clones the test response body.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This encapsulates an HTTP response that is provided by a HttpWebResponse. Many HTTP features are exposed through the WebTestResponse properties.

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

Return to top
Show: