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

StringHttpBody Class

Represents an HTTP body in string form used for SOAP support.


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

public class StringHttpBody : IHttpBody, 

The StringHttpBody type exposes the following members.

Public methodStringHttpBodyInitializes a new instance of the StringHttpBody class.

Public propertyBodyStringGets or sets the string that contains the HTTP body contents.
Public propertyContentTypeGets a value representing the content-type of the body.
Public propertyInsertByteOrderMark

Public methodCloneCreates a shallow copy of the StringHttpBody object.
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 methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodWriteHttpBodyCreates a stream that contains the HTTP body.

This is for basic SOAP support. This class is serializable. For a list of initial property values for an instance of StringHttpBody class, see the StringHttpBody constructor.

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