Telephone Property CollectionSet Preferred(Int 32) Method
This can be used to set one phone number as the preferred phone number
Definition
Namespace: EWSoftware.PDI.Properties
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public void SetPreferred(
int idx
)VB
Public Sub SetPreferred (
idx As Integer
)C++
public:
void SetPreferred(
int idx
)F#
member SetPreferred :
idx : int -> unit Parameters
- idx Int32
- The index of the phone property to make preferred
Remarks
The Preferred flag is turned off in all phone numbers except for the one at the specified
index.
Exceptions
| ArgumentOutOfRangeException | This is thrown if the index is out of bounds |