Class VCardReader
Reads vCard data (RFC 6350, RFC 2426, informal 2.1) from a stream.
Implements
Inherited Members
Namespace: DRIT.Mail.Rfc.VCard
Assembly: DRIT.Mail.dll
Syntax
public sealed class VCardReader : IDisposable
Constructors
View SourceVCardReader(Stream)
Initializes a new instance of the VCardReader class.
Declaration
public VCardReader(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream used to read or write the data. |
VCardReader(Stream, bool)
Initializes a new instance of the VCardReader class.
Declaration
public VCardReader(Stream stream, bool leaveOpen)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream used to read or write the data. |
| bool | leaveOpen | The leave open used by the operation. |
Methods
View SourceDispose()
Processes the dispose data.
Declaration
public void Dispose()
Read()
Reads the first vCard from the stream. Returns null if no vCard is found.
Declaration
public VCard? Read()
Returns
| Type | Description |
|---|---|
| VCard |
ReadAll()
Reads all vCards from the stream.
Declaration
public IReadOnlyList<VCard> ReadAll()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<VCard> |