|
RecogniContact/COM - International Address Parser - Class Parser |
|
Class IContactParserThe class IContactParser is the interface to RecogniContact's parsing engine.Class Methodsvoid Initialize(string userName, string licenseKey);Initializes the parser object with the specified license information. IContactParser.Initialize() must have been called before you can use IContactParser.Parse() Call IContactParser.Initialize() only once in your application. IParsedContact Parse(string sourceText); Parses the string in sourceText, and returns the parsing result as an IParsedContact object. IContactParser.Initialize() must be called once before calling IContactParser.Parse() The maximum length of sourceText is 8 kilobytes (8192 characters). IParsedContact FindContactData(string sourceText); First searches the string sourceText a blocks of text containing contact data, and then parses this block of text using the function Parse() (see above). If several contact information blocks are found within sourceText, FindContactData uses the one with the most details (= the highest number of all available contact fields). See IParsedContact for the list of contact fields. IParserSettings CreateSettingsObject(); void Settings(IParserSettings settings); Allow you to retrieve the current settings, or adjust the parser settings. To change parser settings, proceed as follows:
string GetLicenseInfo(LicenseInfoType licenseInfo); Retrieves Information about your RecogniContact license.
Retrieves the version of the parser installed. It is recommended to verify the RecogniContact version using GetVersion() if you use features that are not available in all versions of RecogniContact. To manually identify the version of RecogniContact installed on a machine you can use the following method: In Windows Explorer, locate "RecogniContact.DLL", right click the file, click "Properties" and see "File version" on Tab "Details". DemoFor a demo see the following source code samples: |