BinaryHttpBody Class
Represents an HTTP body that contains binary data.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.TestTools.WebTesting.BinaryHttpBody
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class BinaryHttpBody _
Implements IHttpBody, ICloneable
[SerializableAttribute]
public class BinaryHttpBody : IHttpBody,
ICloneable
[SerializableAttribute]
public ref class BinaryHttpBody : IHttpBody,
ICloneable
[<SerializableAttribute>]
type BinaryHttpBody =
class
interface IHttpBody
interface ICloneable
end
public class BinaryHttpBody implements IHttpBody, ICloneable
The BinaryHttpBody type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BinaryHttpBody | Initializes a new instance of the BinaryHttpBody class. |
Top
Properties
Name | Description | |
---|---|---|
ContentType | Gets or sets the content type of this data. | |
Data | Gets or sets the binary data. |
Top
Methods
Name | Description | |
---|---|---|
Clone | Makes a copy of the HTTP request object that will be sent to a Web server. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteHttpBody | Writes the binary data to the specified stream. |
Top
Remarks
IHttpBody provides access to the HTTP body through the WriteHttpBody method.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.