ResourceStream.Read Method
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Reads a sequence of bytes from the current stream and advances the position in the stream by the number of bytes read.
Namespace: Microsoft.EnterpriseManagement.Common
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)
Usage
'Usage
Dim instance As ResourceStream
Dim buffer As Byte()
Dim offset As Integer
Dim count As Integer
Dim returnValue As Integer
returnValue = instance.Read(buffer, offset, count)
Syntax
'Declaration
Public Overrides Function Read ( _
buffer As Byte(), _
offset As Integer, _
count As Integer _
) As Integer
public override int Read (
byte[] buffer,
int offset,
int count
)
public:
virtual int Read (
array<unsigned char>^ buffer,
int offset,
int count
) override
public int Read (
byte[] buffer,
int offset,
int count
)
public override function Read (
buffer : byte[],
offset : int,
count : int
) : int
Parameters
- buffer
An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.
- offset
The zero-based byte offset in buffer at which to begin storing the data read from the current stream.
- count
The maximum number of bytes to be read from the current stream.
Return Value
The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
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.
Platforms
Development Platforms
Windows Vista, Windows Server 2003, and
Target Platforms
Windows Server 2008,Windows Server 2003
See Also
Reference
ResourceStream Class
ResourceStream Members
Microsoft.EnterpriseManagement.Common Namespace