Method CreateFromFileAsync
CreateFromFileAsync(String)
Creates a new a DictionarySymbolStyle from the style file at the provided location.
Declaration
public static async Task<DictionarySymbolStyle> CreateFromFileAsync(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | A path to style file |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DictionarySymbolStyle> | The task object representing the asynchronous create operation. The value of the task result is a DictionarySymbolStyle object. |
Remarks
This constructor is only valid for use with the newer format (Arcade-based) style files. An exception is thrown if a older format style is encountered.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.6 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.0 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.6 - 200.8 |
| Xamarin.Android | 100.6 - 100.15 |
| Xamarin.iOS | 100.6 - 100.15 |
| UWP | 100.6 - 200.8 |
Relevant samples
Custom dictionary style: Use a custom dictionary style (.stylx) to symbolize features using a variety of attribute values.