Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.USState.ReadStatesListAsync Method

Returns the list of US states.

Class: YetaWF.Core.Components.USState
Namespace: YetaWF.Core.Components
Assembly: YetaWF.Core

Syntax

public static Task<List<SelectionItem<string>>> ReadStatesListAsync();

Return Value

Returns a list of US states suitable for use in a dropdownlist.

Remarks

The list is cached. Any changes to the list require a site restart.

The list of US states is located at ./CoreComponents/Core/Addons/_Templates/USState/USStates.txt.

See Also YetaWF.Core.Components.USState ClassYetaWF.Core Overview