VCardParserParseFromFile Method

This static method can be used to load property values into a new vCard collection from a file. The filename can be a disk file or a URL.

Definition

Namespace: EWSoftware.PDI.Parser
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public static VCardCollection ParseFromFile(
	string filename
)

Parameters

filename  String
A path or URL to a file containing one or more vCards

Return Value

VCardCollection
A new vCard collection as created from the file

Example

C#
VCardCollection vCards1 = VCardParser.ParseFromFile(@"C:\AddressBook.vcf");
VCardCollection vCards2 = VCardParser.ParseFromFile(
    "http://www.mydomain.com/VCards/AddressBook.vcf");

See Also