共用方式為


SequenceReader<T>.TryReadExact(Int32, ReadOnlySequence<T>) 方法

定義

嘗試從目前的序列完全 count 讀取值。

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

參數

count
Int32

要讀取的值數目。

sequence
ReadOnlySequence<T>

當這個方法傳回時,如果 count 成功讀取專案,則包含讀取數據。

傳回

truecount如果目前序列中有或更多剩餘的專案,則為 。

適用於