PDIParserParseReader Method
Namespace: EWSoftware.PDI.ParserAssembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public void ParseReader(
TextReader tr
)
Public Sub ParseReader (
tr As TextReader
)
public:
void ParseReader(
TextReader^ tr
)
member ParseReader :
tr : TextReader -> unit
Parameters
- tr TextReader
- The text reader object containing the PDI data stream. It is up to you to open the
stream with the appropriate text encoding method if necessary.
The derived class will build a list of objects based on the data stream. See the derived
classes for more information. The stream will be read from its current position to the end of the
stream.
VCardParser vcp = new VCardParser();
StreamReader sr = new StreamReader(@"C:\AddressBook.vcf");
vcp.ParseReader(sr);
VCardCollection vCards = vcp.VCards;
Dim vcp As New VCardParser
Dim sr As New StreamReader("C:\AddressBook.vcf")
vcp.ParseReader(sr);
Dim vCards As VCardCollection = vcp.VCards
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentNullException | This is thrown if the specified text reader object is null. |
PDIParserException | This is thrown if there is an error parsing the data stream.
Inner exceptions may contain additional information about the cause of the error. |