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