SequenceReader<T>.TryReadExact(Int32, ReadOnlySequence<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.