public static IAsyncEnumerable<VCard> DeserializeManyAsync(
IEnumerable<Func<CancellationToken, Task<Stream>>?> factories,
AnsiFilter? filter = null,
CancellationToken token = default
)
Public Shared Function DeserializeManyAsync (
factories As IEnumerable(Of Func(Of CancellationToken, Task(Of Stream))),
Optional filter As AnsiFilter = Nothing,
Optional token As CancellationToken = Nothing
) As IAsyncEnumerable(Of VCard)
public:
static IAsyncEnumerable<VCard^>^ DeserializeManyAsync(
IEnumerable<Func<CancellationToken, Task<Stream^>^>^>^ factories,
AnsiFilter^ filter = nullptr,
CancellationToken token = CancellationToken()
)
static member DeserializeManyAsync :
factories : IEnumerable<Func<CancellationToken, Task<Stream>>> *
?filter : AnsiFilter *
?token : CancellationToken
(* Defaults:
let _filter = defaultArg filter null
let _token = defaultArg token new CancellationToken()
*)
-> IAsyncEnumerable<VCard>
AnsiFilter only recognizes one Encoding per Stream. This means that if a Stream contains VCF data with different Encodings, decoding errors may occur.
Any Streams that are used within the method will be closed when the method completes.
ArgumentNullException | factories is null. |
ArgumentException | One of the Streams doesn't support reading. |
ObjectDisposedException | One of the functions in factories returns a closed stream. |
IOException | The method could not read from one of the Streams. |