Share via


Read Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Reads data from this stream and stores it in the specified array.

Namespace:  Microsoft.SPOT.Net.Security
Assembly:  System.Net.Security (in System.Net.Security.dll)

Syntax

'Declaration
Public Overrides Function Read ( _
    buffer As Byte(), _
    offset As Integer, _
    size As Integer _
) As Integer
public override int Read(
    byte[] buffer,
    int offset,
    int size
)
public:
virtual int Read(
    array<unsigned char>^ buffer, 
    int offset, 
    int size
) override
abstract Read : 
        buffer:byte[] * 
        offset:int * 
        size:int -> int 
override Read : 
        buffer:byte[] * 
        offset:int * 
        size:int -> int 
public override function Read(
    buffer : byte[], 
    offset : int, 
    size : int
) : int

Parameters

  • buffer
    Type: array<System. . :: . .Byte> [] () [] []
    An array that receives the bytes read from this stream.
  • offset
    Type: System. . :: . .Int32
    An integer that contains the zero-based location in buffer at which to begin storing the data read from this stream.

Return Value

Type: System. . :: . .Int32
The number of bytes read. When there is no more data to be read, returns 0.

.NET Framework Security

See Also

Reference

SslStream Class

Microsoft.SPOT.Net.Security Namespace