BinaryHttpBody Class

Represents an HTTP body that contains binary data.


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

public class BinaryHttpBody : IHttpBody, 

The BinaryHttpBody type exposes the following members.

Public methodBinaryHttpBodyInitializes a new instance of the BinaryHttpBody class.

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

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.

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