PDIParserParseFile Method
This method is used to parse one or more PDI objects from the specified file or URL
Namespace: EWSoftware.PDI.ParserAssembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public void ParseFile(
string filename
)
Public Sub ParseFile (
filename As String
)
public:
void ParseFile(
String^ filename
)
member ParseFile :
filename : string -> unit
Parameters
- filename String
- The name of the file from which to read the PDI objects. This can be a
standard filename or a URL that starts with "file://", "http://", or "https://".
The derived class will build a list of objects based on the data stream. See the derived
classes for more information. The named file will be opened, its entire content parsed, and then
it will be closed.
VCardParser vcp = new VCardParser();
vcp.ParseFile(@"C:\AddressBook.vcf");
//Or vcp.ParseFile("http://www.mydomain.com/vCards/AddressBook.vcf");
VCardCollection vCards = vcp.VCards;
Dim vcp As New VCardParser
vcp.ParseFile("C:\AddressBook.vcf");
'Or vcp.ParseFile("http://www.mydomain.com/vCards/AddressBook.vcf");
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 filename string is null or
empty. |
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. |