IInteropStreamContract.Read Method
This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.
Reads a specified number of bytes from the stream object into memory starting at the current seek pointer.
Namespace: Microsoft.VisualStudio.Tools.Applications.Contract
Assembly: Microsoft.VisualStudio.Tools.Applications.Contract.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Contract.v9.0.dll)
Syntax
'Declaration
Function Read ( _
requestedSize As Integer, _
<OutAttribute> ByRef actualSize As Integer _
) As Byte()
'Usage
Dim instance As IInteropStreamContract
Dim requestedSize As Integer
Dim actualSize As Integer
Dim returnValue As Byte()
returnValue = instance.Read(requestedSize, _
actualSize)
byte[] Read(
int requestedSize,
out int actualSize
)
array<unsigned char>^ Read(
int requestedSize,
[OutAttribute] int% actualSize
)
function Read(
requestedSize : int,
actualSize : int
) : byte[]
Parameters
requestedSize
Type: System.Int32The number of bytes to read from the stream object.
actualSize
Type: System.Int32%When this method returns, contains the actual number of bytes read from the stream object.
Return Value
Type: array<System.Byte[]
The data read from the stream.
Remarks
Calls the IStream.Read method of the internal copy of the stream object.
See Also
Reference
IInteropStreamContract Interface
IInteropStreamContract Members
Microsoft.VisualStudio.Tools.Applications.Contract Namespace