Share via


MimeReader.ReadContent method

The ReadContent method reads at most count bytes into buffer, starting at offset bytes.

Namespace:  Microsoft.Exchange.Data.Mime
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

Syntax

'Declaration
Public Function ReadContent ( _
    buffer As Byte(), _
    offset As Integer, _
    count As Integer _
) As Integer
'Usage
Dim instance As MimeReader
Dim buffer As Byte()
Dim offset As Integer
Dim count As Integer
Dim returnValue As Integer

returnValue = instance.ReadContent(buffer, _
    offset, count)
public int ReadContent(
    byte[] buffer,
    int offset,
    int count
)

Parameters

  • buffer
    Type: []

    The byte array to write data into.

  • offset
    Type: System.Int32

    The number of bytes into buffer to begin writing data.

  • count
    Type: System.Int32

    The number of bytes to try to read into buffer.

Return value

Type: System.Int32
The return value for the ReadContent method is the number of bytes that are actually written. This value may be less than the number of bytes that is specified by count if, for example, there are fewer than count bytes left between the current position and the end of the current part.

See also

Reference

MimeReader class

MimeReader members

Microsoft.Exchange.Data.Mime namespace