HttpBufferContent Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HttpBufferContent(IBuffer) |
Initializes a new instance of the HttpBufferContent class with the specified buffer. |
HttpBufferContent(IBuffer, UInt32, UInt32) |
Initializes a new instance of the HttpBufferContent class with an offset and count of bytes from the specified buffer. |
HttpBufferContent(IBuffer)
Initializes a new instance of the HttpBufferContent class with the specified buffer.
public:
HttpBufferContent(IBuffer ^ content);
HttpBufferContent(IBuffer const& content);
public HttpBufferContent(IBuffer content);
function HttpBufferContent(content)
Public Sub New (content As IBuffer)
Parameters
- content
- IBuffer
The content used to initialize the HttpBufferContent.
Examples
See POST binary data over HTTP.
Remarks
The entire buffer specified in the content parameter is used to initialize the HttpBufferContent.
Below are the exceptions that this function throws.
E_INVALIDARG
The content parameter is null (Nothing in Visual Basic).
See also
Applies to
HttpBufferContent(IBuffer, UInt32, UInt32)
Initializes a new instance of the HttpBufferContent class with an offset and count of bytes from the specified buffer.
public:
HttpBufferContent(IBuffer ^ content, unsigned int offset, unsigned int count);
HttpBufferContent(IBuffer const& content, uint32_t const& offset, uint32_t const& count);
public HttpBufferContent(IBuffer content, uint offset, uint count);
function HttpBufferContent(content, offset, count)
Public Sub New (content As IBuffer, offset As UInteger, count As UInteger)
Parameters
- content
- IBuffer
The content used to initialize the HttpBufferContent.
- offset
-
UInt32
unsigned int
uint32_t
The offset in bytes from the beginning of the content buffer to initialize the HttpBufferContent.
- count
-
UInt32
unsigned int
uint32_t
The count of bytes in the content buffer to initialize the HttpBufferContent.
Examples
See POST binary data over HTTP.
Remarks
Only the range specified by the offset parameter and the count parameter is used to initialize the HttpBufferContent.
Below are the exceptions that this content throws.
E_INVALIDARG
The content parameter is null (Nothing in Visual Basic).
The offset parameter is less than zero.
The offset parameter is greater than the length of content specified by the content parameter.
The count parameter is less than zero or the count parameter is greater than the length of content specified by the count parameter minus the offset parameter.