Edit

Share via


SendPacketsElement.MemoryBuffer Property

Definition

Gets the buffer to be sent if the SendPacketsElement object was initialized with a buffer parameter.

public ReadOnlyMemory<byte>? MemoryBuffer { get; }

Property Value

The ReadOnlyMemory<T> of bytes to be sent if the SendPacketsElement object was initialized with a buffer parameter.

Remarks

The default value for the MemoryBuffer property is null if the SendPacketsElement object was not initialized with a buffer parameter. If buffer was passed as a byte[], MemoryBuffer returns the contents of Buffer as a ReadOnlyMemory<T> of bytes.

Applies to

Product Versions
.NET 6, 7, 8, 9, 10