EMail Property CollectionFind First By Type Method
This method can be used to find the first e-mail address that has one of the specified e-mail types
Definition
Namespace: EWSoftware.PDI.Properties
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
The first e-mail address with an e-mail type matching one of those specified or null if not found.
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public EMailProperty? FindFirstByType(
EMailTypes emailType
)VB
Public Function FindFirstByType (
emailType As EMailTypes
) As EMailPropertyC++
public:
EMailProperty^ FindFirstByType(
EMailTypes emailType
)F#
member FindFirstByType :
emailType : EMailTypes -> EMailProperty Parameters
- emailType EMailTypes
- The e-mail type to match
Return Value
EMailPropertyThe first e-mail address with an e-mail type matching one of those specified or null if not found.
Remarks
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.