EMailPropertyCollectionSetPreferred(Int32) Method

This can be used to set one e-mail address as the preferred e-mail address

Definition

Namespace: EWSoftware.PDI.Properties
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public void SetPreferred(
	int idx
)

Parameters

idx  Int32
The index of the address to make preferred

Remarks

The Preferred flag is turned off in all e-mail addresses except for the one at the specified index.

Exceptions

ArgumentOutOfRangeExceptionThis is thrown if the index is out of bounds

See Also