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 Task<DictionarySymbolStyle> CreateFromFileAsync(string path)
Parameters
Type Name Description
string path

A path to style file

Returns
Type Description
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.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.6 - 200.8
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.8
Relevant samples
Custom dictionary style: Use a custom dictionary style (.stylx) to symbolize features using a variety of attribute values.
In this article
Provide feedback
Back to top Copyright © 2025 Esri.