EMailPropertyCollectionFindFirstByType 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: 2023.1.2.0
public EMailProperty FindFirstByType(
	EMailTypes emailType
)

Parameters

emailType  EMailTypes
The e-mail type to match

Return Value

EMailProperty
The 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.

See Also