BinaryHttpBody Class

Represents an HTTP body that contains binary data.

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.BinaryHttpBody

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

[SerializableAttribute]
public class BinaryHttpBody : IHttpBody, 
	ICloneable

The BinaryHttpBody type exposes the following members.

  NameDescription
Public methodBinaryHttpBodyInitializes a new instance of the BinaryHttpBody class.
Top

  NameDescription
Public propertyContentTypeGets or sets the content type of this data.
Public propertyDataGets or sets the binary data.
Top

  NameDescription
Public methodCloneMakes a copy of the HTTP request object that will be sent to a Web server.
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 methodWriteHttpBodyWrites the binary data to the specified stream.
Top

IHttpBody provides access to the HTTP body through the WriteHttpBody 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: