Address Property CollectionFind First By Type Method
This method can be used to find the first address that has one of the specified address types
Definition
Namespace: EWSoftware.PDI.Properties
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
The first address with an address 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 AddressProperty? FindFirstByType(
AddressTypes addrType
)VB
Public Function FindFirstByType (
addrType As AddressTypes
) As AddressPropertyC++
public:
AddressProperty^ FindFirstByType(
AddressTypes addrType
)F#
member FindFirstByType :
addrType : AddressTypes -> AddressProperty Parameters
- addrType AddressTypes
- The address type to match
Return Value
AddressPropertyThe first address with an address type matching one of those specified or null if not found
Remarks
Multiple address types can be specified. Including Preferred will limit the match to
the one with the Preferred flag set. If a preferred address with one of the given types
cannot be found, it will return the first address matching one of the given types without the
Preferred flag set. If no address can be found, it returns null.