Bewerken

Delen via


SendPacketsElement.MemoryBuffer Property

Definition

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

public:
 property Nullable<ReadOnlyMemory<System::Byte>> MemoryBuffer { Nullable<ReadOnlyMemory<System::Byte>> get(); };
public ReadOnlyMemory<byte>? MemoryBuffer { get; }
member this.MemoryBuffer : Nullable<ReadOnlyMemory<byte>>
Public ReadOnly Property MemoryBuffer As Nullable(Of ReadOnlyMemory(Of Byte))

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