ITimeZoneFactorySearchLocalizedNamesAsync Method
Performs a progressive (type-ahead) search for zones whose localized display name,
exemplar city, or TZDB ID matches query.
Namespace: InnerDrive.TimeZonesAssembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.3.9728.0
Task<IReadOnlyList<LocalizedZoneName>> SearchLocalizedNamesAsync(
string? query,
CultureInfo? culture = null,
TimeZoneNameStyle style = TimeZoneNameStyle.Location,
int maxResults = 10,
CancellationToken cancellationToken = default
)
- query String
- The user's in-progress search text.
- culture CultureInfo (Optional)
- The culture to search and resolve display names in. If null,
CurrentUICulture is used.
- style TimeZoneNameStyle (Optional)
- The TimeZoneNameStyle to resolve.
- maxResults Int32 (Optional)
- The maximum number of results to return. A value of zero or
less returns every match.
- cancellationToken CancellationToken (Optional)
- A CancellationToken
controlling the request lifetime
TaskIReadOnlyListLocalizedZoneNameAn empty list if
query is too short to search; otherwise the
matches, relevance-ranked, capped at
maxResults.