Show / Hide Table of Contents

Method OpenAsync

OpenAsync(String, String)

Opens a DictionarySymbolStyle using the style file identified by the specification type or style location.

Declaration
public static async Task<DictionarySymbolStyle> OpenAsync(string specificationType, string styleLocation)
Parameters
Type Name Description
String specificationType

The name of supported military standard to use for the dictionary style.

String styleLocation

The physical location of an older format (non-Arcade based) .stylx file. You must provide the full path (e.g. ../../../mil2525c/mil2525c.stylx).

Returns
Type Description
Task<DictionarySymbolStyle>

A new DictionarySymbolStyle object using the style file identified by the specification type or style location.

Remarks

This constructor is only valid for use with the older format style files. An exception is thrown if a newer format (Arcade-based) style is encountered.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.13
.NET Framework100.0 - 100.8
.NET 5100.11
.NET Core 3.1100.7 - 100.8
Xamarin.Android100.0 - 100.13
Xamarin.iOS100.0 - 100.8
UWP100.0 - 100.15

OpenAsync(PortalItem)

Opens a DictionarySymbolStyle from a portal item. The portal item must be a dictionary web style.

Declaration
public static async Task<DictionarySymbolStyle> OpenAsync(PortalItem portalItem)
Parameters
Type Name Description
PortalItem portalItem

If you have the item id of a style file, you can search the portal to find the item using its item id.

Returns
Type Description
Task<DictionarySymbolStyle>
Remarks

Use this constructor if you have a reference to a dictionary web style portal item.

Exceptions
Type Condition
ArcGISRuntimeException

portalItem is thrown if item passed is not a valid dictionary web style.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.10 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.10 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.10 - 100.12
Xamarin.Android100.10 - 100.15
Xamarin.iOS100.10 - 100.15
UWP100.10 - 100.15

OpenAsync(Uri)

Opens a new DictionarySymbolStyle from a dictionary web style item Uri.

Declaration
public static async Task<DictionarySymbolStyle> OpenAsync(Uri source)
Parameters
Type Name Description
Uri source

Dictionary webstyle item Uri.

Returns
Type Description
Task<DictionarySymbolStyle>

The dictionary symbol style

Remarks

A dictionary symbol style using style item's Uri. Uri not pointing to a dictionary symbol style will throw

Exceptions
Type Condition
ArcGISRuntimeException

source is thrown if uri is not a valid dictionary web style uri.

Applies to

Platforms and versions
TargetVersions
UWP100.15
In This Article
Back to top Copyright © 2022 Esri.