TelephonePropertyCollectionFindFirstByType Method
This method can be used to find the first phone number that has one of the specified phone types
Namespace: EWSoftware.PDI.PropertiesAssembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public TelephoneProperty FindFirstByType(
PhoneTypes phoneType
)
Public Function FindFirstByType (
phoneType As PhoneTypes
) As TelephoneProperty
public:
TelephoneProperty^ FindFirstByType(
PhoneTypes phoneType
)
member FindFirstByType :
phoneType : PhoneTypes -> TelephoneProperty
- phoneType PhoneTypes
- The phone type to match
TelephonePropertyThe first phone number with a phone type matching one of those specified or null if not found
Multiple phone types can be specified. Including Preferred will limit the match to
the one with the Preferred flag set. If a preferred phone number with one of the given types
cannot be found, it will return the first phone number matching one of the given types without the
Preferred flag set. If no phone number can be found, it returns null.