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 - 100.15 | 
| .NET 6.0 | 100.13 - 100.15 | 
| .NET 6.0 Windows | 100.13 - 100.15 | 
| .NET Framework | 100.6 - 100.15 | 
| .NET 5 | 100.10 - 100.12 | 
| .NET Core 3.1 | 100.7 - 100.12 | 
| Xamarin.Android | 100.6 - 100.15 | 
| Xamarin.iOS | 100.6 - 100.15 | 
| UWP | 100.6 - 100.15 | 
Relevant samples
Custom dictionary style: Use a custom dictionary style (.stylx) to symbolize features using a variety of attribute values.