Get the next packet from the stream.

C# | Visual Basic | Managed C++ |
bool Get ( int maximumSize, out Data data, out ContextCallback callback, out Object context, out bool moreAvailable )
Function Get ( _ maximumSize As Integer, _ <OutAttribute> ByRef data As Data, _ <OutAttribute> ByRef callback As ContextCallback, _ <OutAttribute> ByRef context As Object, _ <OutAttribute> ByRef moreAvailable As Boolean _ ) As Boolean

- maximumSize (Int32)
- The maximum number of bytes to return in the packet.
- data (Data)
- The list of contiguous memory segments that constitute the packet.
- callback (ContextCallback)
- The callback to be invoked when the packet has been physically transmitted.
- context (Object)
- The context object to be passed to the callback.
- moreAvailable (Boolean)
- Indicates whether there are more packets to send in this stream.

Tru if a packet was produced, false if the strream could not produce a packet. If the result is true, the stream
will remain registered with the data sink. If the result is false, the stream will be unregistered and detached from the sink.