แก้ไข

แชร์ผ่าน


SequenceReader<T>.TryReadExact(Int32, ReadOnlySequence<T>) Method

Definition

Attempts to read exactly count values from the current sequence.

public:
 bool TryReadExact(int count, [Runtime::InteropServices::Out] System::Buffers::ReadOnlySequence<T> % sequence);
public bool TryReadExact (int count, out System.Buffers.ReadOnlySequence<T> sequence);
member this.TryReadExact : int * ReadOnlySequence -> bool
Public Function TryReadExact (count As Integer, ByRef sequence As ReadOnlySequence(Of T)) As Boolean

Parameters

count
Int32

The number of values to read.

sequence
ReadOnlySequence<T>

When this method returns, contains the read data, if count items were successfully read.

Returns

true if there are count or more remaining items in the current sequence.

Applies to