Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Net.​Sockets.​SendPacketsElement
Assembly: System.Net.Sockets
Inheritance: object → SendPacketsElement
Represents an element in a <see cref="T:System.Net.Sockets.SendPacketsElement" /> array.
Properties
public
byte[]
Buffer
Gets the buffer to be sent if the <see cref="T:System.Net.Sockets.SendPacketsElement" /> object was initialized with a <paramref name="buffer" /> parameter.
public
int
Count
Gets the count of bytes to be sent.
public
bool
EndOfPacket
Gets a Boolean value that indicates if this element should not be combined with the next element in a single send request from the sockets layer to the transport.
public
string
FilePath
Gets the filename of the file to send if the <see cref="T:System.Net.Sockets.SendPacketsElement" /> object was initialized with a <paramref name="filepath" /> parameter.
FileStream
Gets the object representation of the file to send if the <see cref="T:System.Net.Sockets.SendPacketsElement" /> object was initialized with a <see cref="T:System.IO.FileStream" /> parameter.
public
ReadOnlyMemory?
MemoryBuffer
Gets the buffer to be sent if the <see cref="T:System.Net.Sockets.SendPacketsElement" /> object was initialized with a <code>buffer</code> parameter.
public
int
Offset
Gets the offset, in bytes, from the beginning of the data buffer or file to the location in the buffer or file to start sending the data.
public
long
OffsetLong
Gets the offset, in bytes, from the beginning of the data buffer or file to the location in the buffer or file to start sending the data.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object