Name Parser
NameMatch Method
Example 



KellermanSoftware.NameParser Namespace > NameParserLogic Class : NameMatch Method
A name to compare
A second name to compare
Detects if two names match. Detects roots such as John and Johnathan
Syntax
'Declaration
 
Public Function NameMatch( _
   ByVal nameParts1 As NameParts, _
   ByVal nameParts2 As NameParts _
) As Boolean
'Usage
 
Dim instance As NameParserLogic
Dim nameParts1 As NameParts
Dim nameParts2 As NameParts
Dim value As Boolean
 
value = instance.NameMatch(nameParts1, nameParts2)

Parameters

nameParts1
A name to compare
nameParts2
A second name to compare
Example
NameParserLogic parser = new NameParserLogic(); //Trial Mode
//NameParserLogic parser = new NameParserLogic("place user name here", "place license key here");  //License Mode
            
NameParts parts1 = new NameParts
{
	FirstName = "Mike"
};
NameParts parts2 = new NameParts
{
	FirstName = "Michael"
};
            
//This will be true since Michael is a root match for Mike
Console.WriteLine(parser.NameMatch(parts1,parts2));
Dim parser As New NameParserLogic() 'Trial Mode
'Dim parser As New NameParserLogic("place user name here", "place license key here") 'License Mode
            
Dim parts1 As New NameParts() With { _
	Key .FirstName = "Mike" _
}
Dim parts2 As New NameParts() With { _
	Key .FirstName = "Michael" _
}
            
'This will be true since Michael is a root match for Mike
Console.WriteLine(parser.NameMatch(parts1, parts2))
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NameParserLogic Class
NameParserLogic Members