Partager via


BinaryHttpBody Class

Represents an HTTP body that contains binary data.

Inheritance Hierarchy

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
Public method BinaryHttpBody Initializes a new instance of the BinaryHttpBody class.

Top

Properties

  Name Description
Public property ContentType Gets or sets the content type of this data.
Public property Data Gets or sets the binary data.

Top

Methods

  Name Description
Public method Clone Makes a copy of the HTTP request object that will be sent to a Web server.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace

IHttpBody

ICloneable