Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.6 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.6 - 200.7
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.7
Relevant samples
Custom dictionary style: Use a custom dictionary style (.stylx) to symbolize features using a variety of attribute values.
In This Article
Back to top Copyright © 2022 Esri.