WebTestResponse Properties

Include Protected Members
Include Inherited Members

The WebTestResponse type exposes the following members.

Properties

  Name Description
Public property BodyBytes Gets the raw bytes of the HTTP response body.
Public property BodyString Gets a string version of the response body for responses with text, HTML, or XML content types.
Public property CharacterSet Gets the character set that is specified in the response headers.
Public property ContentEncoding Gets the method that is used to encode the body of the response.
Public property ContentLength Gets the length of the content that is returned by the request.
Public property ContentType Gets the MIME type of the response body.
Public property Cookies Gets the cookies associated with the response.
Public property Guid
Public property Headers Gets the headers associated with the response from the server.
Public property HtmlDocument Gets the HtmlDocument created by parsing the response body of a response with HTML or XHTML content type.
Public property IsBodyEmpty Gets a value indicating whether the response body is empty.
Public property IsHtml Gets a value indicating whether the response body is an HTML document.
Public property IsText Gets a value indicating whether the response body is a text document.
Public property IsXml Gets a value that indicates whether the response is XML.
Public property LastModified Gets the last date and time that the contents of the response were modified.
Public property Method Gets the method that is used to return the response.
Public property ProtocolVersion Gets the version of the HTTP protocol that is used in the response.
Public property ResponseUri Gets the URI of the Internet resource that responded to the request.
Public property Server Gets the name of the server that sent the response.
Public property Statistics Gets detailed information gathered during the execution of the request.
Public property StatusCode Gets the status of the response.
Public property StatusDescription Gets the status description returned with the response.
Public property XmlDocument Gets a XmlDocument representing the response body if the content type indicated the response was XML.

Top

See Also

Reference

WebTestResponse Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace