Share via


MimeReader.ReadRawContent Method

The ReadRawContent method reads at most count bytes into buffer, without decoding them, starting at offset bytes.

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

Syntax

'Declaration
Public Function ReadRawContent ( _
    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.ReadRawContent(buffer, _
    offset, count)
public int ReadRawContent(
    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 ReadRawContent 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.